0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 08:30:44 -05:00

FIx getGameConfig() failing on profile creation

This commit is contained in:
Dev 2023-07-25 10:22:12 +01:00
parent 50629f0cf3
commit fd365df8ba

View File

@ -245,7 +245,7 @@ export class GameController
},
// eslint-disable-next-line @typescript-eslint/naming-convention
utc_time: new Date().getTime() / 1000,
totalInGame: profile.Stats.TotalInGameTime
totalInGame: profile.Stats?.TotalInGameTime ?? 0
};
return config;