fix: update calendar progress at daily reset #2365

Merged
Sainan merged 2 commits from refill-calendar into main 2025-06-30 13:28:28 -07:00
Showing only changes of commit 4e5ee5e88d - Show all commits

View File

@ -109,7 +109,9 @@ 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
if (inventory.CalendarProgress) {
getCalendarProgress(inventory); // handle year rollover; the client expects to receive an inventory with an up-to-date CalendarProgress
}
cleanupInventory(inventory);