Skip to content

Commit

Permalink
core: add fix for localOnly items getting deleted on sync
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Sep 4, 2023
1 parent 12d8911 commit aa9cd23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/api/sync/merger.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ class Merger {
}

async mergeContent(remoteItem, localItem, lastSynced) {
if (localItem && localItem.localOnly) return;

const THRESHOLD = process.env.NODE_ENV === "test" ? 6 * 1000 : 60 * 1000;
const conflicted =
localItem &&
Expand Down

0 comments on commit aa9cd23

Please sign in to comment.