From e4f1abaa5a0261b0b19e59919d4f72055664de63 Mon Sep 17 00:00:00 2001 From: Zamitto <167933696+zamitto@users.noreply.github.com> Date: Thu, 20 Jun 2024 00:01:39 -0300 Subject: [PATCH] fix: merge with remote games not updating local games correctly --- src/main/services/library-sync/merge-with-remote-games.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/services/library-sync/merge-with-remote-games.ts b/src/main/services/library-sync/merge-with-remote-games.ts index e31310fc..8790318f 100644 --- a/src/main/services/library-sync/merge-with-remote-games.ts +++ b/src/main/services/library-sync/merge-with-remote-games.ts @@ -32,10 +32,12 @@ export const mergeWithRemoteGames = async () => { { objectID: game.objectId, shop: "steam", + }, + { + remoteId: game.id, lastTimePlayed: updatedLastTimePlayed, playTimeInMilliseconds: updatedPlayTime, - }, - { remoteId: game.id } + } ); } else { const steamGame = await steamGamesWorker.run(Number(game.objectId), {