diff --git a/src/controllers/api/inventoryController.ts b/src/controllers/api/inventoryController.ts index 730756a1..213102b3 100644 --- a/src/controllers/api/inventoryController.ts +++ b/src/controllers/api/inventoryController.ts @@ -13,7 +13,8 @@ import { allDailyAffiliationKeys, cleanupInventory, createLibraryDailyTask, - generateRewardSeed + generateRewardSeed, + getCalendarProgress } from "@/src/services/inventoryService"; import { logger } from "@/src/utils/logger"; import { addString, catBreadHash } from "@/src/helpers/stringHelpers"; @@ -108,6 +109,8 @@ export const inventoryController: RequestHandler = async (request, response) => } } + getCalendarProgress(inventory); // handle year rollover; the client expects to receive an inventory with an up-to-date CalendarProgress + cleanupInventory(inventory); inventory.NextRefill = new Date((today + 1) * 86400000); // tomorrow at 0 UTC