Skip to content

Node.js based forum software built for the modern web

fix tests

barisusakli54c951cc816b
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);
},