return early

This commit is contained in:
Barış Soner Uşaklı
2026-02-27 19:02:35 -05:00
parent f9226294df
commit 0bac703530

View File

@@ -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) => {