diff --git a/apps/drec-api/src/pods/user/user.service.ts b/apps/drec-api/src/pods/user/user.service.ts index 3a050e4c8..a232a03c3 100755 --- a/apps/drec-api/src/pods/user/user.service.ts +++ b/apps/drec-api/src/pods/user/user.service.ts @@ -512,6 +512,12 @@ export class UserService { id: number, data: UpdateUserDTO, ): Promise { + data = new User({ + firstName: data.firstName, + lastName: data.lastName, + email: data.email, + status: data.status, + }); const validationErrors = await validate(data, { skipUndefinedProperties: true, });