Skip to content

Commit

Permalink
Merge pull request #130 from Resilient-Labs/be-ro-change-userName-fields
Browse files Browse the repository at this point in the history
updated username field and key names for mongo
  • Loading branch information
anaiscmateus authored Dec 29, 2023
2 parents 6f35549 + 3bca4ec commit 0d437ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/controllers/profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ export const updateContact = async (req, res) => {
const updateProfile = await User.findByIdAndUpdate(
userId,
{
userName: req.body.userName.trim(),
fName: req.body.firstName.trim(),
lName: req.body.lastName.trim(),
firstName: req.body.firstName.trim(),
lastName: req.body.lastName.trim(),
email: req.body.email.trim(),
},
{ new: true }
Expand Down

0 comments on commit 0d437ab

Please sign in to comment.