fix: merge with remote games not updating local games correctly

This commit is contained in:
Zamitto 2024-06-20 00:01:39 -03:00
parent 6b31586734
commit e4f1abaa5a

View file

@ -32,10 +32,12 @@ export const mergeWithRemoteGames = async () => {
{ {
objectID: game.objectId, objectID: game.objectId,
shop: "steam", shop: "steam",
},
{
remoteId: game.id,
lastTimePlayed: updatedLastTimePlayed, lastTimePlayed: updatedLastTimePlayed,
playTimeInMilliseconds: updatedPlayTime, playTimeInMilliseconds: updatedPlayTime,
}, }
{ remoteId: game.id }
); );
} else { } else {
const steamGame = await steamGamesWorker.run(Number(game.objectId), { const steamGame = await steamGamesWorker.run(Number(game.objectId), {