Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: invert condition

thecodrr0901901e213d
diff --git a/packages/core/api/sync.js b/packages/core/api/sync.js
index dcfb043fc..93c31ce94 100644
--- a/packages/core/api/sync.js
+++ b/packages/core/api/sync.js
@@ -69,7 +69,7 @@ export default class Sync {
await this._send(data);
// update our lastSynced time
- if (!mergeResult && areAllEmpty(data))
+ if (mergeResult && !areAllEmpty(data))
await this.db.user.set({ lastSynced: data.lastSynced });
}