From e2845bb5caf62d6767f8a4e698430113c7afd755 Mon Sep 17 00:00:00 2001 From: azdful Date: Wed, 23 Jul 2025 09:25:09 -0700 Subject: [PATCH] Update src/controllers/api/sellController.ts --- src/controllers/api/sellController.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/controllers/api/sellController.ts b/src/controllers/api/sellController.ts index 0dd52bf6..3a04ba3c 100644 --- a/src/controllers/api/sellController.ts +++ b/src/controllers/api/sellController.ts @@ -9,7 +9,8 @@ import { freeUpSlot, combineInventoryChanges, addCrewShipRawSalvage, - addFusionPoints + addFusionPoints, + addCrewShipFusionPoints } from "@/src/services/inventoryService"; import { InventorySlot } from "@/src/types/inventoryTypes/inventoryTypes"; import { ExportDojoRecipes } from "warframe-public-export-plus"; @@ -26,6 +27,8 @@ export const sellController: RequestHandler = async (req, res) => { requiredFields.add("RegularCredits"); } else if (payload.SellCurrency == "SC_FusionPoints") { requiredFields.add("FusionPoints"); + } else if (payload.SellCurrency == "SC_CrewShipFusionPoints") { + requiredFields.add("CrewShipFusionPoints"); } else { requiredFields.add("MiscItems"); } @@ -79,6 +82,8 @@ export const sellController: RequestHandler = async (req, res) => { inventory.RegularCredits += payload.SellPrice; } else if (payload.SellCurrency == "SC_FusionPoints") { addFusionPoints(inventory, payload.SellPrice); + } else if (payload.SellCurrency == "SC_CrewShipFusionPoints") { + addCrewShipFusionPoints(inventory, payload.SellPrice); } else if (payload.SellCurrency == "SC_PrimeBucks") { addMiscItems(inventory, [ {