Skip to content

Commit

Permalink
Merge pull request #350 from d-rec/DR-839_Update_User_Fix
Browse files Browse the repository at this point in the history
DR-839 update user fix
  • Loading branch information
Aish1990 authored Jul 8, 2024
2 parents 093e0fb + d4abe69 commit 2ffac8e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/drec-api/src/pods/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,12 @@ export class UserService {
id: number,
data: UpdateUserDTO,
): Promise<ExtendedBaseEntity & IUser> {
data = new User({
firstName: data.firstName,
lastName: data.lastName,
email: data.email,
status: data.status,
});
const validationErrors = await validate(data, {
skipUndefinedProperties: true,
});
Expand Down

0 comments on commit 2ffac8e

Please sign in to comment.