Skip to content

Commit 1f5c339

Browse files
committed
migrate ends with 1 when there is an error
1 parent ae70414 commit 1f5c339

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/api/migrations/migrate.ts

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import { config } from 'api/config';
44
import errorLog from 'api/log/errorLog';
55
import { migrator } from './migrator';
66

7+
process.on('unhandledRejection', error => {
8+
throw error;
9+
});
10+
711
const run = async () => {
812
await DB.connect();
913
const { db } = await DB.connectionForDB(config.defaultTenant.dbName);

0 commit comments

Comments
 (0)