Skip to content

Conversation

@Hardik-Kumar0005
Copy link

Problem

User profile pictures were not being properly retrieved or stored in the database due to a mismatch between the property name used in the controller and the actual property defined in the User model.

Related Issues:

Root Cause

  • The User model defines the property as avatarUrl
  • The controller was incorrectly using profilPic (with a typo)
  • This mismatch caused profile picture data to be lost during user creation/updates

Changes

  • Updated controller to use the correct property name avatarUrl instead of profilPic
  • Fixed typo: profilPicprofilePicavatarUrl
  • Ensured consistency between model definition and controller usage

Impact

  • ✅ User profile pictures now correctly saved to database
  • ✅ Profile pictures properly retrieved and displayed
  • ✅ Prevents data loss for user avatar information

Testing

  • Verified user creation with profile picture upload
  • Confirmed profile picture retrieval from database
  • Tested default empty string behavior when avatarUrl is not provided

@vercel
Copy link

vercel bot commented Oct 10, 2025

@Hardik-Kumar0005 is attempting to deploy a commit to the Sameer's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Signup avatar isn’t persisted and does not store the Avatar image of the user

1 participant