From 064aa36b22d5eef3a742045e7a46e892eb2d5757 Mon Sep 17 00:00:00 2001 From: Master Date: Wed, 7 Jun 2023 06:46:51 +0800 Subject: [PATCH] update --- src/controllers/api/purchaseController.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/controllers/api/purchaseController.ts b/src/controllers/api/purchaseController.ts index 652dd298..ec257c2e 100644 --- a/src/controllers/api/purchaseController.ts +++ b/src/controllers/api/purchaseController.ts @@ -29,17 +29,6 @@ const purchaseController = async (req: Request, res: Response): Promise => const response = await PurchaseItem(parseString(accountId), item, quantity, usePremium, price); res.json({ InventoryChanges: response }); return; - } else { - // eslint-disable-next-line @typescript-eslint/no-unsafe-call - const item_name = storeItem.replace("StoreItems/", ""); - const new_item = items.find(i => { - return i.uniqueName == item_name; - }); - if (new_item) { - const response = await PurchaseItem(parseString(accountId), new_item, quantity, usePremium, price); - res.json({ InventoryChanges: response }); - return; - } } res.json(purchase); };