diff --git a/src/controllers/api/dronesController.ts b/src/controllers/api/dronesController.ts index 21c4f609..7ec3714b 100644 --- a/src/controllers/api/dronesController.ts +++ b/src/controllers/api/dronesController.ts @@ -3,6 +3,7 @@ import { addMiscItems, getInventory } from "@/src/services/inventoryService"; import { getAccountIdForRequest } from "@/src/services/loginService"; import { getRandomElement, getRandomInt } from "@/src/services/rngService"; import { IMongoDate, IOid } from "@/src/types/commonTypes"; +import { IDroneClient } from "@/src/types/inventoryTypes/inventoryTypes"; import { IInventoryChanges } from "@/src/types/purchaseTypes"; import { RequestHandler } from "express"; import { ExportDrones, ExportResources, ExportSystems } from "warframe-public-export-plus"; @@ -104,11 +105,12 @@ export const dronesController: RequestHandler = async (req, res) => { drone.PendingDamage = undefined; drone.ResourceType = undefined; drone.ResourceCount = undefined; + + inventoryChanges.Drones = [drone.toJSON()]; } await inventory.save(); res.json({ - // TODO: Let the client know the new HP of this drone... somehow InventoryChanges: inventoryChanges }); } else {