reert all the deps upgrades

This commit is contained in:
Matteo Pagliazzi
2015-10-30 14:16:35 +01:00
parent 413a06c8d3
commit 0131ba3e45
6 changed files with 61 additions and 91 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ api.unsubscribe = function(req, res, next){
$set: {'preferences.emailNotifications.unsubscribeFromAll': true}
}, {multi: false}, function(err, updateRes){
if(err) return next(err);
if(updateRes.n !== 1) return res.json(404, {err: 'User not found'});
if(updateRes !== 1) return res.json(404, {err: 'User not found'});
res.send('<h1>' + i18n.t('unsubscribedSuccessfully', null, req.language) + '</h1>' + i18n.t('unsubscribedTextUsers', null, req.language));
});