From b45f7daa6f447c48f3e33ab527ee03d73262d5f3 Mon Sep 17 00:00:00 2001 From: Artyom Ashirov <1323ED5@gmail.com> Date: Fri, 15 Nov 2024 00:29:42 +0300 Subject: [PATCH] add location state reset --- src/handlers/adminLocationHandler.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/handlers/adminLocationHandler.js b/src/handlers/adminLocationHandler.js index 3c20209..e23233b 100644 --- a/src/handlers/adminLocationHandler.js +++ b/src/handlers/adminLocationHandler.js @@ -125,6 +125,8 @@ export default class AdminLocationHandler { return; } + this.userStates.delete(chatId); + try { const locations = await db.allAsync(` SELECT l.*, @@ -279,7 +281,6 @@ export default class AdminLocationHandler { } } - async backToMenu(callbackQuery) { if (!this.isAdmin(callbackQuery.from.id)) return;