From 577e3761cec6354a41b8c12cf77a9215586b5c58 Mon Sep 17 00:00:00 2001 From: Ovler Date: Sat, 29 Jun 2024 18:27:16 +0000 Subject: [PATCH] fix: remainingBvids will be [] after check --- src/lib/server/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/server/utils.ts b/src/lib/server/utils.ts index 29f56f6..c37a6fa 100644 --- a/src/lib/server/utils.ts +++ b/src/lib/server/utils.ts @@ -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, });