upgrade lodash to 2.2.1

This commit is contained in:
Matteo Pagliazzi
2013-11-02 09:52:48 +01:00
parent 898adfdc13
commit 5a103db716
3 changed files with 5 additions and 5 deletions

View File

@@ -243,7 +243,7 @@ api.deleteChatMessage = function(req, res, next){
return res.json(401, {err: "Not authorized to delete this message!"})
}
group.chat = _.without(group.chat, message);
_.pull(group.chat, message);
group.save(function(err, data){
if(err) return res.json(500, {err: err});