core: fix migration

This commit is contained in:
ammarahm-ed
2023-09-13 17:32:17 +05:00
parent cbd0f18c6e
commit ae680a32bc

View File

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