mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
check just in case
This commit is contained in:
@@ -73,9 +73,9 @@ function getMainPids(tids, callback) {
|
|||||||
if (err) {
|
if (err) {
|
||||||
return callback(err);
|
return callback(err);
|
||||||
}
|
}
|
||||||
topics = topics.map(function(topics) {
|
topics = topics.map(function(topic) {
|
||||||
return topics.mainPid;
|
return topic && topic.mainPid;
|
||||||
});
|
}).filter(Boolean);
|
||||||
callback(null, topics);
|
callback(null, topics);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user