add location state reset
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user