Skip to content

Commit

Permalink
Wrong call to updateTable.put() - it's inbound
Browse files Browse the repository at this point in the history
  • Loading branch information
David Fahlander committed Sep 4, 2024
1 parent 26bb73d commit cc37806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/dexie-cloud/src/yjs/applyYMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function applyYServerMessages(
let syncer = (await tx.table(utbl).get(DEXIE_CLOUD_SYNCER_ID)) as
| YSyncer
| undefined;
await tx.table(utbl).put(DEXIE_CLOUD_SYNCER_ID, {
await tx.table(utbl).put({
...(syncer || { i: DEXIE_CLOUD_SYNCER_ID }),
unsentFrom: Math.max(syncer?.unsentFrom || 1, m.i + 1),
} as YSyncer);
Expand Down

0 comments on commit cc37806

Please sign in to comment.