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