fix: version is not defined

This commit is contained in:
thecodrr
2020-12-05 15:31:09 +05:00
parent 757ab5fa6d
commit 771ca90cf9
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ class Migrations {
} }
_migrationFunction(collectionId) { _migrationFunction(collectionId) {
let migrationFunction = migrations[version][collectionId]; let migrationFunction = migrations[this.dbVersion][collectionId];
if (!migrationFunction) if (!migrationFunction)
migrationFunction = migrations[CURRENT_DATABASE_VERSION][collectionId]; migrationFunction = migrations[CURRENT_DATABASE_VERSION][collectionId];
return migrationFunction; return migrationFunction;

View File

@@ -1,6 +1,6 @@
{ {
"name": "notes-core", "name": "notes-core",
"version": "3.1.0", "version": "3.1.1",
"private": true, "private": true,
"main": "./api/index.js", "main": "./api/index.js",
"devDependencies": { "devDependencies": {