mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: missing await on topic purge
This commit is contained in:
@@ -415,8 +415,6 @@ Notes.prune = async () => {
|
||||
winston.info(`[notes/prune] ${tids.length} topics eligible for pruning`);
|
||||
|
||||
await batch.processArray(tids, async (tids) => {
|
||||
await Promise.all(tids.map(async (tid) => {
|
||||
topics.purgePostsAndTopic(tid, 0);
|
||||
}));
|
||||
await Promise.all(tids.map(async tid => await topics.purgePostsAndTopic(tid, 0)));
|
||||
}, { batch: 100 });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user