A local-first personal finance app
🐛 Fix migrations not working on fresh clone (#487)
Michael Clark603f970f1248
diff --git a/app.js b/app.jsindex 4e254b5dab..d0647fb88f 100644--- a/app.js+++ b/app.js@@ -1,8 +1,10 @@-import run from './src/app.js';import runMigrations from './src/migrations.js';runMigrations()- .then(run)+ .then(() => {+ //import the app here becasue initial migrations need to be run first - they are dependencies of the app.js+ import('./src/app.js').then((app) => app.default()); // run the app+ }).catch((err) => {console.log('Error starting app:', err);process.exit(1);diff --git a/upcoming-release-notes/487.md b/upcoming-release-notes/487.mdnew file mode 100644index 0000000000..c0c53da464--- /dev/null+++ b/upcoming-release-notes/487.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [MikesGlitch]+---++Fix migrations not running properly on inital setup