Skip to content

Commit

Permalink
fix: default to existing email if none provided for update
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinWu098 committed Jul 31, 2024
1 parent f1fcefa commit 47de9b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/adminUserRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ adminUserRouter.put('/:email', async (req, res) => {
{
name,
lastUpdated,
newEmail,
newEmail: newEmail ?? email,
email,
},
);
Expand Down

0 comments on commit 47de9b9

Please sign in to comment.