chore: update trainingResultController (#611)

This commit is contained in:
Sainan 2024-12-23 14:36:52 +01:00 committed by GitHub
parent dda41875ae
commit 0a4d620652
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,9 +22,8 @@ const trainingResultController: RequestHandler = async (req, res): Promise<void>
const inventory = await getInventory(accountId);
inventory.TrainingDate = new Date(Date.now() + unixTimesInMs.day);
if (trainingResults.numLevelsGained == 1) {
inventory.TrainingDate = new Date(Date.now() + unixTimesInMs.hour * 23);
inventory.PlayerLevel += 1;
}