Save DB on exit
This commit is contained in:
parent
0d1a7e12f8
commit
be44da10a6
1 changed files with 3 additions and 0 deletions
|
|
@ -1,3 +1,6 @@
|
|||
import { database } from "$/main";
|
||||
|
||||
export function cleanExit() {
|
||||
database.shutdown();
|
||||
process.exit(0);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue