mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-18 03:31:03 +01:00
feat: scheduled topics (#9399)
* feat: scheduled topics * refactor: linting fixes * fix: tests * fix(test): race condition * fix: make a single request
This commit is contained in:
@@ -55,7 +55,7 @@ module.exports = function (Categories) {
|
||||
topicData = await topics.getTopicData(postData.tid);
|
||||
}
|
||||
index += 1;
|
||||
} while (!topicData || topicData.deleted);
|
||||
} while (!topicData || topicData.deleted || topicData.scheduled);
|
||||
|
||||
if (postData && postData.tid) {
|
||||
await Categories.updateRecentTid(cid, postData.tid);
|
||||
|
||||
Reference in New Issue
Block a user