Skip to content

Commit

Permalink
fix: code comment typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mohit4bug committed Jun 1, 2024
1 parent 8c98e24 commit b0d7e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/apps/auth/user.controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ const verifyEmail = asyncHandler(async (req, res) => {
// Now we can remove the associated email token and expiry date as we no longer need them
user.emailVerificationToken = undefined;
user.emailVerificationExpiry = undefined;
// Tun the email verified flag to `true`
// Turn the email verified flag to `true`
user.isEmailVerified = true;
await user.save({ validateBeforeSave: false });

Expand Down

0 comments on commit b0d7e0d

Please sign in to comment.