Skip to content

Commit

Permalink
Merge pull request #1219 from JC-Coder/fix/auth-google
Browse files Browse the repository at this point in the history
fix(auth): correct profile update with user ID instead of profile ID
  • Loading branch information
incredible-phoenix246 authored Feb 27, 2025
2 parents b422211 + b024db2 commit 4611b6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ export default class AuthenticationService {
if (!userExists.profile.profile_pic_url || userExists.profile.profile_pic_url !== verifyTokenResponse.picture) {
const updateDto = new UpdateProfileDto();
updateDto.profile_pic_url = verifyTokenResponse.picture;
await this.profileService.updateProfile(userExists.profile.id, updateDto);
await this.profileService.updateProfile(userExists.id, updateDto);
}

return {
Expand Down

0 comments on commit 4611b6d

Please sign in to comment.