mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-28 16:06:47 +01:00
core: fix migration
This commit is contained in:
@@ -51,7 +51,13 @@ class Migrator {
|
||||
for await (const index of collection.dbCollection._collection.iterate(
|
||||
100
|
||||
)) {
|
||||
await this.migrateItems(db, collection, index, get, version);
|
||||
await this.migrateItems(
|
||||
db,
|
||||
collection,
|
||||
index.map((item) => item[1]),
|
||||
get,
|
||||
version
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user