fix: missing await on topic purge

This commit is contained in:
Julian Lam
2024-06-07 16:48:05 -04:00
parent 4bb2c1a85e
commit 6ecc791db9

View File

@@ -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 });
};