Remove quotes from object keys
This commit is contained in:
@ -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', {
|
||||
|
Reference in New Issue
Block a user