Skip to content

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

core: call migrateItem with backup key

ammarahm-ed7990458cf34f
diff --git a/packages/core/src/database/backup.js b/packages/core/src/database/backup.js
index ffa170359..195178dbc 100644
--- a/packages/core/src/database/backup.js
+++ b/packages/core/src/database/backup.js
@@ -255,7 +255,7 @@ export default class Backup {
if (item.type === "tag" && COLORS.includes(item.title.toLowerCase()))
item.type = "color";
- await migrateItem(item, version, item.type, this._db);
+ await migrateItem(item, version, item.type, this._db, "backup");
// since items in trash can have their own set of migrations,
// we have to run the migration again to account for that.
if (item.type === "trash" && item.itemType)