Skip to content

Commit

Permalink
fix: remainingBvids will be [] after check
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovler-Young committed Jun 29, 2024
1 parent 0b90ecf commit 577e376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/server/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ const handle_source = async (ctx: Context, source_type: string, source_id: strin

if (remainingBvids.length > 0 && checked_turns < 30) {
setTimeout(checkArchives, 1200000); // 20 minutes
} else if (remainingBvids.length = 0) {
} else if (remainingBvids.length === 0) {
await ctx.reply(`All items have been processed.`, {
reply_markup,
});
Expand Down

0 comments on commit 577e376

Please sign in to comment.