From dc767d31553970034842b109c8c1785f589eee74 Mon Sep 17 00:00:00 2001 From: Oliver Akins Date: Tue, 9 Aug 2022 19:11:07 -0600 Subject: [PATCH] Shutdown the DB on exit --- src/utils/cleanExit.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utils/cleanExit.ts b/src/utils/cleanExit.ts index 2c96e20..d9c1dfa 100644 --- a/src/utils/cleanExit.ts +++ b/src/utils/cleanExit.ts @@ -1,3 +1,6 @@ +import { database } from "$/main"; + export function cleanExit() { + database.shutdown(); process.exit(0); }; \ No newline at end of file