Skip to content

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

sync: fix inverted condition

thecodrr4fba9b1e2ca4
diff --git a/packages/core/api/sync.js b/packages/core/api/sync.js
index 944437fd7..9bad351cb 100644
--- a/packages/core/api/sync.js
+++ b/packages/core/api/sync.js
@@ -64,7 +64,7 @@ export default class Sync {
async _merge({ serverResponse, lastSyncedTimestamp, user }) {
const { notes, synced, notebooks } = serverResponse;
- if (synced) {
+ if (!synced) {
syncArrayWithDatabase(
notes,
id => this.db.notes.note(id).data,