From d4eb5d46c32f36c53bf5be78cf7c007c36fc31ce Mon Sep 17 00:00:00 2001 From: Artyom Ashirov <1323ED5@gmail.com> Date: Thu, 21 Nov 2024 13:43:41 +0300 Subject: [PATCH] Zip error fix --- src/handlers/adminDumpHandler.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/handlers/adminDumpHandler.js b/src/handlers/adminDumpHandler.js index 6e2b6ed..34e87b6 100644 --- a/src/handlers/adminDumpHandler.js +++ b/src/handlers/adminDumpHandler.js @@ -128,8 +128,9 @@ export default class AdminDumpHandler { await decompress(fileContent, './dump'); - const statistics = await this.getDumpStatistic() + const statistics = await this.getDumpStatistic(); await this.bot.sendMessage(chatId, JSON.stringify(statistics, null, 2)); + this.userStates.delete(chatId); } else { await this.bot.sendMessage(chatId, 'Please upload a valid .zip file.'); return true;