fix: sync data overwriting local game data

This commit is contained in:
Zamitto
2025-05-30 10:03:07 -03:00
parent 46a6c8c987
commit f50f1e51e4

View File

@@ -18,6 +18,7 @@ const syncGameByObjectId = async (
const currentData = await gamesSublevel.get(gameKey);
await gamesSublevel.put(gameKey, {
...currentData,
...rest,
remoteId: id,
playTimeInMilliseconds: playTimeInSeconds * 1000,