Skip to content

Commit

Permalink
Code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Karlen-ll committed Nov 6, 2024
1 parent ce3998f commit fd22f07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/shared/modules/user/default-user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ export class DefaultUserService implements UserService {
return await this.create(dto, salt);
}

public async updateById(id: string, dto: updateUserDto): Promise<DocumentType<UserEntity> | null> {
public async updateById(
id: string,
dto: updateUserDto
): Promise<DocumentType<UserEntity> | null> {
return this.userModel.findByIdAndUpdate(id, dto, { new: true });
}
}

0 comments on commit fd22f07

Please sign in to comment.