From e07713d49c52a8b29e1cc033602563a7513db03c Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Tue, 29 Oct 2013 18:03:11 +0100 Subject: [PATCH] typo --- src/controllers/groups.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/groups.js b/src/controllers/groups.js index 5a7fdf1ed4..d4d9961aaa 100644 --- a/src/controllers/groups.js +++ b/src/controllers/groups.js @@ -341,7 +341,7 @@ api.removeMember = function(req, res, next){ // Sending an empty 204 because Group.update doesn't return the group // see http://mongoosejs.com/docs/api.html#model_Model.update - res.send(204); + return res.send(204); }); }else if(_.contains(group.invites, uuid)){ User.findById(uuid, function(err,invited){ @@ -364,7 +364,7 @@ api.removeMember = function(req, res, next){ // Sending an empty 204 because Group.update doesn't return the group // see http://mongoosejs.com/docs/api.html#model_Model.update - res.send(204); + return res.send(204); }); });