fix: foundry keeps refreshing, thinking argon crystals are expired (#393)

This commit is contained in:
Sainan 2024-06-24 12:29:32 +02:00 committed by GitHub
parent 8433e75072
commit 1a3b3b9750
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -136,6 +136,9 @@ const inventoryController: RequestHandler = async (request, response) => {
}
}
// Fix for #380
inventoryResponse.NextRefill = { $date: { $numberLong: "9999999999999" } };
response.json(inventoryResponse);
};

View File

@ -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[];