From 841b57ec9e4717d3fad9974b95fa0de305cd77c5 Mon Sep 17 00:00:00 2001 From: Sainan Date: Mon, 24 Jun 2024 04:05:09 +0200 Subject: [PATCH] fix: foundry keeps refreshing, thinking argon crystals are expired --- src/controllers/api/inventoryController.ts | 3 +++ src/types/inventoryTypes/inventoryTypes.ts | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/controllers/api/inventoryController.ts b/src/controllers/api/inventoryController.ts index 021a7558..a37a8a90 100644 --- a/src/controllers/api/inventoryController.ts +++ b/src/controllers/api/inventoryController.ts @@ -136,6 +136,9 @@ const inventoryController: RequestHandler = async (request, response) => { } } + // Fix for #380 + inventoryResponse.NextRefill = { $date: { $numberLong: "9999999999999" } }; + response.json(inventoryResponse); }; diff --git a/src/types/inventoryTypes/inventoryTypes.ts b/src/types/inventoryTypes/inventoryTypes.ts index 5e897f2a..f963d819 100644 --- a/src/types/inventoryTypes/inventoryTypes.ts +++ b/src/types/inventoryTypes/inventoryTypes.ts @@ -253,7 +253,8 @@ export interface IInventoryResponse { NemesisAbandonedRewards: string[]; DailyAffiliationKahl: number; LastInventorySync: IOid; - NextRefill: IMongoDate; + NextRefill: IMongoDate; // Next time argon crystals will have a decay tick + FoundToday?: IMiscItem[]; // for Argon Crystals ActiveLandscapeTraps: any[]; EvolutionProgress?: IEvolutionProgress[]; RepVotes: any[];