Skip to content

Commit 7780e44

Browse files
BigMichi1Copilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent aeb6050 commit 7780e44

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/bot/handlers/backfillHandler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ export async function backfillChannelHistory(
244244
const allCodesArr = [...allCodes];
245245
const redeemedSet = await codeManager.getRedeemedCodesFromList(allCodesArr);
246246
const codesToPend = allCodesArr.filter((c) => !redeemedSet.has(c));
247-
const inserted = await codeManager.addNewPendingCodes(codesToPend);
248-
stats.pendingCodes = inserted.length;
247+
await codeManager.addNewPendingCodes(codesToPend);
248+
stats.pendingCodes = codesToPend.length;
249249

250250
onProgress?.(
251251
`✅ Backfill complete! Found: ${stats.codesFound}, Redeemed: ${stats.codesRedeemed}, Pending: ${stats.pendingCodes}`

0 commit comments

Comments
 (0)