Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

core: fix migration

ammarahm-edae680a32bcf2
diff --git a/packages/core/src/database/migrator.js b/packages/core/src/database/migrator.js
index a294cfda5..d3ad5d3c2 100644
--- a/packages/core/src/database/migrator.js
+++ b/packages/core/src/database/migrator.js
@@ -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
+ );
}
}
}