mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
fix: version is not defined
This commit is contained in:
@@ -19,7 +19,7 @@ class Migrations {
|
||||
}
|
||||
|
||||
_migrationFunction(collectionId) {
|
||||
let migrationFunction = migrations[version][collectionId];
|
||||
let migrationFunction = migrations[this.dbVersion][collectionId];
|
||||
if (!migrationFunction)
|
||||
migrationFunction = migrations[CURRENT_DATABASE_VERSION][collectionId];
|
||||
return migrationFunction;
|
||||
|
||||
Reference in New Issue
Block a user