From 358c15163a615b1975f81a4925672922c9298fea Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Mon, 26 May 2025 11:57:54 -0300 Subject: [PATCH] fix: remove unneeded call to current game --- src/main/events/library/sync-game-by-object-id.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main/events/library/sync-game-by-object-id.ts b/src/main/events/library/sync-game-by-object-id.ts index 02071696..6235a09c 100644 --- a/src/main/events/library/sync-game-by-object-id.ts +++ b/src/main/events/library/sync-game-by-object-id.ts @@ -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,