diff --git a/src/controllers/api/entratiLabConquestModeController.ts b/src/controllers/api/entratiLabConquestModeController.ts index ae480402..ae7b5845 100644 --- a/src/controllers/api/entratiLabConquestModeController.ts +++ b/src/controllers/api/entratiLabConquestModeController.ts @@ -19,11 +19,11 @@ export const entratiLabConquestModeController: RequestHandler = async (req, res) const weekEnd = weekStart + 604800000; inventory.EntratiVaultCountLastPeriod = 0; inventory.EntratiVaultCountResetDate = new Date(weekEnd); - if ("EntratiLabConquestUnlocked" in inventory) { + if (inventory.EntratiLabConquestUnlocked) { inventory.EntratiLabConquestUnlocked = 0; inventory.EntratiLabConquestActiveFrameVariants = []; } - if ("EchoesHexConquestUnlocked" in inventory) { + if (inventory.EchoesHexConquestUnlocked) { inventory.EchoesHexConquestUnlocked = 0; inventory.EchoesHexConquestActiveFrameVariants = []; inventory.EchoesHexConquestActiveStickers = []; @@ -38,10 +38,14 @@ export const entratiLabConquestModeController: RequestHandler = async (req, res) } } if (body.IsEchoesDeepArchemedea) { - inventory.EchoesHexConquestActiveFrameVariants = body.EchoesHexConquestActiveFrameVariants!; - inventory.EchoesHexConquestActiveStickers = body.EchoesHexConquestActiveStickers!; + if (inventory.EchoesHexConquestUnlocked) { + inventory.EchoesHexConquestActiveFrameVariants = body.EchoesHexConquestActiveFrameVariants!; + inventory.EchoesHexConquestActiveStickers = body.EchoesHexConquestActiveStickers!; + } } else { - inventory.EntratiLabConquestActiveFrameVariants = body.EntratiLabConquestActiveFrameVariants!; + if (inventory.EntratiLabConquestUnlocked) { + inventory.EntratiLabConquestActiveFrameVariants = body.EntratiLabConquestActiveFrameVariants!; + } } await inventory.save(); res.json({