Skip to content

Commit

Permalink
feat: implemented username & orgslug feature for public profiles (#85)
Browse files Browse the repository at this point in the history
* worked on the username & orgslug feature for public profiles

Signed-off-by: @nishad.shirsat <nishad.shirsat@ayanworks.com>

* refractored the GET API endoints for public profiles

Signed-off-by: @nishad.shirsat <nishad.shirsat@ayanworks.com>

* refactored the organization GET API public profiles

Signed-off-by: @nishad.shirsat <nishad.shirsat@ayanworks.com>

* solved the regix expression grouping issue.

Signed-off-by: @nishad.shirsat <nishad.shirsat@ayanworks.com>

* resolved the comments on the PR

Signed-off-by: @nishad.shirsat <nishad.shirsat@ayanworks.com>

---------

Signed-off-by: @nishad.shirsat <nishad.shirsat@ayanworks.com>
Signed-off-by: KulkarniShashank <shashank.kulkarni@ayanworks.com>
  • Loading branch information
nishad-ayanworks authored and KulkarniShashank committed Sep 11, 2024
1 parent a8fe330 commit f3c0a12
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions apps/user/repositories/user.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,31 +114,6 @@ export class UserRepository {
*/
async updateUserProfile(updateUserProfile: UpdateUserProfile): Promise<user> {

try {
const userdetails = await this.prisma.user.update({
where: {
id: Number(updateUserProfile.id)
},
data: {
firstName: updateUserProfile.firstName,
lastName: updateUserProfile.lastName,
email: updateUserProfile.email
}
});
return userdetails;

} catch (error) {
this.logger.error(`error: ${JSON.stringify(error)}`);
throw new InternalServerErrorException(error);
}
}

/**
*
* @Body updateUserProfile
* @returns Update user profile data
*/
async updateUserProfile(updateUserProfile: UpdateUserProfile): Promise<UpdateUserProfile> {
try {
const userdetails = await this.prisma.user.update({
where: {
Expand Down

0 comments on commit f3c0a12

Please sign in to comment.