Zip error fix

This commit is contained in:
Artyom Ashirov 2024-11-21 13:43:41 +03:00
parent 3153ecf325
commit d4eb5d46c3

View File

@ -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;