A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: wait 5 seconds before finishing database migration
thecodrre25496b3e5fe
diff --git a/packages/core/api/migrations.js b/packages/core/api/migrations.jsindex 70b3d14c8..3eab5c194 100644--- a/packages/core/api/migrations.js+++ b/packages/core/api/migrations.js@@ -65,9 +65,10 @@ class Migrations {await this._migrator.migrate(collections, (item) => item, this.dbVersion);await this._db.storage.write("v", CURRENT_DATABASE_VERSION);- this._db.eventManager.publish(EVENTS.databaseMigrated);-- this.dbVersion = CURRENT_DATABASE_VERSION;+ setTimeout(() => {+ this._db.eventManager.publish(EVENTS.databaseMigrated);+ this.dbVersion = CURRENT_DATABASE_VERSION;+ }, 5000);}}export default Migrations;diff --git a/packages/core/common.js b/packages/core/common.jsindex ef3302c26..dff338dee 100644--- a/packages/core/common.js+++ b/packages/core/common.js@@ -66,7 +66,7 @@ export const EVENTS = {systemTimeInvalid: "system:invalidTime",};-export const CURRENT_DATABASE_VERSION = 5.5;+export const CURRENT_DATABASE_VERSION = 5.6;export function setUserPersonalizationBytes(userSalt) {USER_PERSONALIZATION_HASH = new Uint8Array(