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,
shop: "steam",
},
{
remoteId: game.id,
lastTimePlayed: updatedLastTimePlayed,
playTimeInMilliseconds: updatedPlayTime,
},
{ remoteId: game.id }
}
);
} else {
const steamGame = await steamGamesWorker.run(Number(game.objectId), {