core: fix v5.8 backups not restoring due to changed item ids (#1303)

* core: back restore repaired due to version change
Signed-off-by: Muhammad Ali <alihamuh@gmail.com>
This commit is contained in:
Muhammad Ali
2022-11-09 12:26:33 +05:00
committed by GitHub
parent a973a5cdf0
commit f62c045350
2 changed files with 2 additions and 2 deletions

View File

@@ -200,7 +200,7 @@ export default class Backup {
await this._migrator.migrate(
this._db,
collections,
(id) => data[id],
(id, type) => (version < 5.8 ? data[id] : data[`${id}_${type}`]),
version,
true
);