don't need to do this if the user never had a CalendarProgress to begin with, probably
All checks were successful
Build / build (pull_request) Successful in 49s

This commit is contained in:
Sainan 2025-06-30 20:18:00 +02:00
parent 77285b828d
commit 4e5ee5e88d

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);