Skip to content

Commit

Permalink
admin apis
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed Sep 24, 2023
1 parent 7202ca7 commit 1889128
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/features/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 1889128

Please sign in to comment.