core: call migrateItem with backup key

This commit is contained in:
ammarahm-ed
2023-09-13 18:15:44 +05:00
parent f3b13735f3
commit 7990458cf3

View File

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