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;