mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
fix tests
This commit is contained in:
@@ -29,7 +29,7 @@ module.exports = function(Categories) {
|
|||||||
},
|
},
|
||||||
function(topics, next) {
|
function(topics, next) {
|
||||||
if (!Array.isArray(topics) || !topics.length) {
|
if (!Array.isArray(topics) || !topics.length) {
|
||||||
return next(null, []);
|
return next(null, {topics: [], uid: data.uid});
|
||||||
}
|
}
|
||||||
|
|
||||||
for (var i=0; i<topics.length; ++i) {
|
for (var i=0; i<topics.length; ++i) {
|
||||||
|
|||||||
Reference in New Issue
Block a user