We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae70414 commit 1f5c339Copy full SHA for 1f5c339
app/api/migrations/migrate.ts
@@ -4,6 +4,10 @@ import { config } from 'api/config';
4
import errorLog from 'api/log/errorLog';
5
import { migrator } from './migrator';
6
7
+process.on('unhandledRejection', error => {
8
+ throw error;
9
+});
10
+
11
const run = async () => {
12
await DB.connect();
13
const { db } = await DB.connectionForDB(config.defaultTenant.dbName);
0 commit comments