mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
core: call migrateItem with backup key
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user