Zip error fix
This commit is contained in:
parent
3153ecf325
commit
d4eb5d46c3
@ -128,8 +128,9 @@ export default class AdminDumpHandler {
|
|||||||
|
|
||||||
await decompress(fileContent, './dump');
|
await decompress(fileContent, './dump');
|
||||||
|
|
||||||
const statistics = await this.getDumpStatistic()
|
const statistics = await this.getDumpStatistic();
|
||||||
await this.bot.sendMessage(chatId, JSON.stringify(statistics, null, 2));
|
await this.bot.sendMessage(chatId, JSON.stringify(statistics, null, 2));
|
||||||
|
this.userStates.delete(chatId);
|
||||||
} else {
|
} else {
|
||||||
await this.bot.sendMessage(chatId, 'Please upload a valid .zip file.');
|
await this.bot.sendMessage(chatId, 'Please upload a valid .zip file.');
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user