mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-30 14:21:04 +00:00
fix: sync data overwriting local game data
This commit is contained in:
@@ -18,6 +18,7 @@ const syncGameByObjectId = async (
|
|||||||
const currentData = await gamesSublevel.get(gameKey);
|
const currentData = await gamesSublevel.get(gameKey);
|
||||||
|
|
||||||
await gamesSublevel.put(gameKey, {
|
await gamesSublevel.put(gameKey, {
|
||||||
|
...currentData,
|
||||||
...rest,
|
...rest,
|
||||||
remoteId: id,
|
remoteId: id,
|
||||||
playTimeInMilliseconds: playTimeInSeconds * 1000,
|
playTimeInMilliseconds: playTimeInSeconds * 1000,
|
||||||
|
|||||||
Reference in New Issue
Block a user