Skip to content

Commit 3562ba0

Browse files
authored
fix: ensure failure exit code is properly reported (#778)
* fix: ensure failure exit code is properly reported * chore: ignore eslint error in main * chore: try voiding the promise
1 parent 2a0c3ef commit 3562ba0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scripts/migrate-call.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ dotenv.config()
33

44
import { runMigrationsOnTenant } from '@internal/database/migrations'
55
import { getConfig } from '../config'
6-
;(async () => {
6+
void (async () => {
77
const { databaseURL, dbMigrationFreezeAt } = getConfig()
88
await runMigrationsOnTenant({
99
databaseUrl: databaseURL,
1010
upToMigration: dbMigrationFreezeAt,
1111
})
12-
})().catch(console.error)
12+
})()

0 commit comments

Comments
 (0)