Skip to content

Commit

Permalink
User Schema refracted
Browse files Browse the repository at this point in the history
  • Loading branch information
prasanth7890 committed Nov 27, 2023
1 parent 0e976eb commit 5f75f53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions routes/user/Auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ router.post("/update", async (req, res) => {

// Updated User
const UserData = {
firstname: existingUser.firstName,
lastname: existingUser.lastName,
firstName: existingUser.firstName,
lastName: existingUser.lastName,
email: email,
password: newHashedPassword,
address: existingUser.address,
Expand Down
4 changes: 2 additions & 2 deletions routes/user/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ router.post("/update", async (req, res) => {

// Updated User
const UserData = {
firstName: existingUser.firstname,
lastName: existingUser.lastname,
firstName: existingUser.firstName,
lastName: existingUser.lastName,
email: email,
password: newHashedPassword,
address: existingUser.address,
Expand Down

0 comments on commit 5f75f53

Please sign in to comment.