Remove quotes from object keys
This commit is contained in:
@ -178,9 +178,9 @@ module.exports = function(app) {
|
|||||||
return res.redirect('/map');
|
return res.redirect('/map');
|
||||||
}
|
}
|
||||||
return user.updateAttributes({
|
return user.updateAttributes({
|
||||||
'sendMonthlyEmail': false,
|
sendMonthlyEmail: false,
|
||||||
'sendQuincyEmail': false,
|
sendQuincyEmail: false,
|
||||||
'sendNotificationEmail': false
|
sendNotificationEmail: false
|
||||||
}, (err) => {
|
}, (err) => {
|
||||||
if (err) { return next(err); }
|
if (err) { return next(err); }
|
||||||
req.flash('info', {
|
req.flash('info', {
|
||||||
@ -224,9 +224,9 @@ module.exports = function(app) {
|
|||||||
return res.redirect('/map');
|
return res.redirect('/map');
|
||||||
}
|
}
|
||||||
return user.updateAttributes({
|
return user.updateAttributes({
|
||||||
'sendQuincyEmail': false,
|
sendQuincyEmail: false,
|
||||||
'sendMonthlyEmail': false,
|
sendMonthlyEmail: false,
|
||||||
'sendNotificationEmail': false
|
sendNotificationEmail: false
|
||||||
}, (err) => {
|
}, (err) => {
|
||||||
if (err) { return next(err); }
|
if (err) { return next(err); }
|
||||||
req.flash('info', {
|
req.flash('info', {
|
||||||
|
Reference in New Issue
Block a user