diff --git a/server/boot/randomAPIs.js b/server/boot/randomAPIs.js index 5d8a0e994a..8de1503c69 100644 --- a/server/boot/randomAPIs.js +++ b/server/boot/randomAPIs.js @@ -178,9 +178,9 @@ module.exports = function(app) { return res.redirect('/map'); } return user.updateAttributes({ - 'sendMonthlyEmail': false, - 'sendQuincyEmail': false, - 'sendNotificationEmail': false + sendMonthlyEmail: false, + sendQuincyEmail: false, + sendNotificationEmail: false }, (err) => { if (err) { return next(err); } req.flash('info', { @@ -224,9 +224,9 @@ module.exports = function(app) { return res.redirect('/map'); } return user.updateAttributes({ - 'sendQuincyEmail': false, - 'sendMonthlyEmail': false, - 'sendNotificationEmail': false + sendQuincyEmail: false, + sendMonthlyEmail: false, + sendNotificationEmail: false }, (err) => { if (err) { return next(err); } req.flash('info', {