Skip to content

Commit

Permalink
fix(core): Close db connection gracefully when exiting (n8n-io#8045)
Browse files Browse the repository at this point in the history
Close db connection gracefully when exiting
  • Loading branch information
tomi authored Dec 15, 2023
1 parent 48d4f4a commit e69707e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/BaseCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export abstract class BaseCommand extends Command {

protected async exitSuccessFully() {
try {
await CrashJournal.cleanup();
await Promise.all([CrashJournal.cleanup(), Db.close()]);
} finally {
process.exit();
}
Expand Down

0 comments on commit e69707e

Please sign in to comment.