From 54c951cc816b83168083000ae3e08af6c07d4c73 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Thu, 2 Mar 2017 22:12:56 +0300 Subject: [PATCH] fix tests --- src/controllers/user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/user.js b/src/controllers/user.js index 008faa4a06..0f93f549b3 100644 --- a/src/controllers/user.js +++ b/src/controllers/user.js @@ -48,7 +48,7 @@ function byType(type, req, res, next) { return next(); } res.json(data); - } + }, ], next); } @@ -62,12 +62,12 @@ userController.getUserDataByField = function (callerUid, field, fieldValue, call } else if (field === 'email') { user.getUidByEmail(fieldValue, next); } else { - next(); + next(null, null); } }, function (uid, next) { if (!uid) { - return next(); + return next(null, null); } userController.getUserDataByUID(callerUid, uid, next); },