Delet Subcategory Function
This commit is contained in:
14
src/index.js
14
src/index.js
@@ -69,11 +69,6 @@ bot.on('message', async (msg) => {
|
||||
return;
|
||||
}
|
||||
|
||||
// Check for admin subcategory input
|
||||
if (await adminProductHandler.handleSubcategoryInput(msg)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Check for product import
|
||||
if (await adminProductHandler.handleProductImport(msg)) {
|
||||
return;
|
||||
@@ -217,9 +212,6 @@ bot.on('callback_query', async (callbackQuery) => {
|
||||
} else if (action.startsWith('shop_category_')) {
|
||||
logDebug(action, 'handleCategorySelection');
|
||||
await userProductHandler.handleCategorySelection(callbackQuery);
|
||||
} else if (action.startsWith('shop_subcategory_')) {
|
||||
logDebug(action, 'handleSubcategorySelection');
|
||||
await userProductHandler.handleSubcategorySelection(callbackQuery);
|
||||
} else if (action.startsWith('shop_product_')) {
|
||||
logDebug(action, 'handleProductSelection');
|
||||
await userProductHandler.handleProductSelection(callbackQuery);
|
||||
@@ -282,12 +274,6 @@ bot.on('callback_query', async (callbackQuery) => {
|
||||
} else if (action.startsWith('prod_category_')) {
|
||||
logDebug(action, 'handleCategorySelection');
|
||||
await adminProductHandler.handleCategorySelection(callbackQuery);
|
||||
} else if (action.startsWith('add_subcategory_')) {
|
||||
logDebug(action, 'handleAddSubcategory');
|
||||
await adminProductHandler.handleAddSubcategory(callbackQuery);
|
||||
} else if (action.startsWith('prod_subcategory_')) {
|
||||
logDebug(action, 'handleSubcategorySelection');
|
||||
await adminProductHandler.handleSubcategorySelection(callbackQuery);
|
||||
} else if (action.startsWith('list_products_')) {
|
||||
logDebug(action, 'handleProductListPage');
|
||||
await adminProductHandler.handleProductListPage(callbackQuery);
|
||||
|
||||
Reference in New Issue
Block a user