mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
end connections to db gracefully
This commit is contained in:
parent
8578ca9e51
commit
f1a7575f37
@ -50,6 +50,10 @@ const run = async (command: string) => {
|
||||
default:
|
||||
throw new Error(`Unsupported command ${command}`)
|
||||
}
|
||||
|
||||
// Terminate connections gracefully
|
||||
await con.close()
|
||||
pool.end()
|
||||
}
|
||||
|
||||
run(process.argv[2])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user