mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
sync: fix inverted condition
This commit is contained in:
@@ -64,7 +64,7 @@ export default class Sync {
|
|||||||
async _merge({ serverResponse, lastSyncedTimestamp, user }) {
|
async _merge({ serverResponse, lastSyncedTimestamp, user }) {
|
||||||
const { notes, synced, notebooks } = serverResponse;
|
const { notes, synced, notebooks } = serverResponse;
|
||||||
|
|
||||||
if (synced) {
|
if (!synced) {
|
||||||
syncArrayWithDatabase(
|
syncArrayWithDatabase(
|
||||||
notes,
|
notes,
|
||||||
id => this.db.notes.note(id).data,
|
id => this.db.notes.note(id).data,
|
||||||
|
|||||||
Reference in New Issue
Block a user