mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 03:27:01 +02:00
return early
This commit is contained in:
@@ -778,7 +778,9 @@ async function pruneCidTids(cid, cuttoff) {
|
||||
max: cuttoff,
|
||||
batch: 500,
|
||||
});
|
||||
|
||||
if (!tidsWithNoEngagement.length) {
|
||||
return;
|
||||
}
|
||||
winston.info(`[notes/prune] ${tidsWithNoEngagement.length} topics eligible in cid:${cid} for pruning`);
|
||||
|
||||
await batch.processArray(tidsWithNoEngagement, async (tids) => {
|
||||
|
||||
Reference in New Issue
Block a user