add location state reset

This commit is contained in:
Artyom Ashirov 2024-11-15 00:29:42 +03:00
parent ebad9da439
commit b45f7daa6f

View File

@ -125,6 +125,8 @@ export default class AdminLocationHandler {
return; return;
} }
this.userStates.delete(chatId);
try { try {
const locations = await db.allAsync(` const locations = await db.allAsync(`
SELECT l.*, SELECT l.*,
@ -279,7 +281,6 @@ export default class AdminLocationHandler {
} }
} }
async backToMenu(callbackQuery) { async backToMenu(callbackQuery) {
if (!this.isAdmin(callbackQuery.from.id)) return; if (!this.isAdmin(callbackQuery.from.id)) return;