mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
fix tests
This commit is contained in:
@@ -48,7 +48,7 @@ function byType(type, req, res, next) {
|
|||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
res.json(data);
|
res.json(data);
|
||||||
}
|
},
|
||||||
], next);
|
], next);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,12 +62,12 @@ userController.getUserDataByField = function (callerUid, field, fieldValue, call
|
|||||||
} else if (field === 'email') {
|
} else if (field === 'email') {
|
||||||
user.getUidByEmail(fieldValue, next);
|
user.getUidByEmail(fieldValue, next);
|
||||||
} else {
|
} else {
|
||||||
next();
|
next(null, null);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
function (uid, next) {
|
function (uid, next) {
|
||||||
if (!uid) {
|
if (!uid) {
|
||||||
return next();
|
return next(null, null);
|
||||||
}
|
}
|
||||||
userController.getUserDataByUID(callerUid, uid, next);
|
userController.getUserDataByUID(callerUid, uid, next);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user