You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PATCH /roles/2 Works and returns { id:2, ...updatedFields}
What does not work ?
Code
@Crud(Role)
@Controller('roles')exportclassRolesControllerimplementsCrudController<RolesService,Role>{constructor(publicservice: RolesService){}getbase(): CrudController<RolesService,Role>{returnthis;}
@Override()updateOne(@Param('id')id, @Param()params, @Body()dto){// id, params and dto are good herereturnthis.base.updateOneBase(id,params,dto);}}
Test
PATCH /roles/2 Does not work because it returns a new record { id:14, ...newField}
I think it might be correlated with this issue: #4
The text was updated successfully, but these errors were encountered:
What works ?
Code
Test
PATCH
/roles/2
Works and returns{ id:2, ...updatedFields}
What does not work ?
Code
Test
PATCH
/roles/2
Does not work because it returns a new record{ id:14, ...newField}
I think it might be correlated with this issue: #4
The text was updated successfully, but these errors were encountered: