diff --git a/src/controllers/api/syndicateSacrificeController.ts b/src/controllers/api/syndicateSacrificeController.ts index 97b198cd..8b1a9c7a 100644 --- a/src/controllers/api/syndicateSacrificeController.ts +++ b/src/controllers/api/syndicateSacrificeController.ts @@ -5,7 +5,7 @@ import { ExportSyndicates, ISyndicateSacrifice } from "warframe-public-export-pl import { handleStoreItemAcquisition } from "@/src/services/purchaseService"; import { addMiscItems, combineInventoryChanges, getInventory, updateCurrency } from "@/src/services/inventoryService"; import { IInventoryChanges } from "@/src/types/purchaseTypes"; -import { fromStoreItem } from "@/src/services/itemDataService"; +import { toStoreItem } from "@/src/services/itemDataService"; import { logger } from "@/src/utils/logger"; export const syndicateSacrificeController: RequestHandler = async (request, response) => { @@ -70,7 +70,7 @@ export const syndicateSacrificeController: RequestHandler = async (request, resp rewardType = title.storeItemReward; rewardCount = 1; } else { - rewardType = fromStoreItem(title.reward!.ItemType); + rewardType = toStoreItem(title.reward!.ItemType); rewardCount = title.reward!.ItemCount; } const rewardInventoryChanges = (await handleStoreItemAcquisition(rewardType, inventory, rewardCount))