Skip to content

Commit

Permalink
🐛 Fix migrations not working on fresh clone (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikesGlitch authored Oct 28, 2024
1 parent c9e6d78 commit 603f970
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down
6 changes: 6 additions & 0 deletions upcoming-release-notes/487.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [MikesGlitch]
---

Fix migrations not running properly on inital setup

0 comments on commit 603f970

Please sign in to comment.