graceful exit for drizzle migration

This commit is contained in:
Vikhyath Mondreti
2025-08-29 00:25:47 -07:00
parent 5c73038023
commit f578f43c9a

View File

@@ -21,14 +21,8 @@ if (env.DATABASE_SSL_CERT) {
}
process.once('exit', cleanup)
process.once('SIGINT', () => {
cleanup()
process.exit(0)
})
process.once('SIGTERM', () => {
cleanup()
process.exit(0)
})
process.once('SIGINT', cleanup)
process.once('SIGTERM', cleanup)
} catch {
// If writing fails, leave sslConfig undefined and allow connection to fail fast
}