Skip to content

Commit

Permalink
update check
Browse files Browse the repository at this point in the history
  • Loading branch information
dbauszus-glx committed Nov 17, 2023
1 parent 61a3911 commit a227f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/user/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = async (req, res) => {
|| 'https://' + (process.env.ALIAS || req.headers.host)}${process.env.DIR}`

// Send email to the user account if an account has been approved.
if (req.params.field === 'approved' && req.params.value === 'true') {
if (req.params.field === 'approved' && req.params.value === true) {

await mailer({
template: 'approved_account',
Expand Down

0 comments on commit a227f2e

Please sign in to comment.