fix: remove unneeded call to current game

This commit is contained in:
Zamitto
2025-05-26 11:57:54 -03:00
parent 0225e31947
commit 358c15163a

View File

@@ -14,10 +14,8 @@ const syncGameByObjectId = async (
const { id, playTimeInSeconds, ...rest } = res;
const gameKey = levelKeys.game(shop, objectId);
const game = await gamesSublevel.get(gameKey);
await gamesSublevel.put(gameKey, {
...game,
...rest,
remoteId: id,
playTimeInMilliseconds: playTimeInSeconds * 1000,