sync: fix inverted condition

This commit is contained in:
thecodrr
2020-03-19 14:43:42 +05:00
parent 8187c9b840
commit 4fba9b1e2c

View File

@@ -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,