From 0d23ef94da2d595c18fb49e18553c9f86e22e4c8 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Tue, 10 Feb 2015 21:42:43 +0100 Subject: [PATCH] fix when second email not defined --- src/controllers/groups.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/groups.js b/src/controllers/groups.js index 9003799722..52389f1234 100644 --- a/src/controllers/groups.js +++ b/src/controllers/groups.js @@ -620,7 +620,7 @@ var inviteByEmails = function(invites, group, req, res, next){ cb(); }); }else{ - cb({code: 400, err: 'Email address is required.'}); + cb(); } }, function(err){ if(err) return err.code ? res.json(err.code, {err: err.err}) : next(err);