From 18891281c9353604851838e414a7b56138928b13 Mon Sep 17 00:00:00 2001 From: Gbuntu Date: Sun, 24 Sep 2023 23:40:13 +0330 Subject: [PATCH] admin apis --- src/features/user/user.service.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/features/user/user.service.ts b/src/features/user/user.service.ts index 51225c362..334affc1d 100644 --- a/src/features/user/user.service.ts +++ b/src/features/user/user.service.ts @@ -140,6 +140,17 @@ export class UserService { theUser.contributions && theUser.contributions.find((c) => c.panelRole == userDetails.panelRole) ) { + const theUserDetails = this.allUserRepository.create({ + typeId: userDetails.typeId, + firstName: userDetails.firstName, + lastName: userDetails.lastName, + avatarUrl: userDetails.avatarUrl, + flaskUserId: userDetails.flaskUserId, + birthDate: userDetails.birthDate, + userName: userDetails.userName, + }); + + await this.updateContributor(theUser.id, theUserDetails); return await this.getUserByFlaskId(userDetails.flaskUserId); } }