Skip to content

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

core: set mode to "sync" for migrations during sync

Abdullah Atta5afdd88eb7ba
diff --git a/packages/core/src/api/sync/index.ts b/packages/core/src/api/sync/index.ts
index f06bd93a4..7082b6b40 100644
--- a/packages/core/src/api/sync/index.ts
+++ b/packages/core/src/api/sync/index.ts
@@ -454,7 +454,7 @@ async function deserializeItem(
CURRENT_DATABASE_VERSION,
item.itemType,
database,
- "backup"
+ "sync"
);
if (migrationResult === "skip") return;
}