Cleanup and build

This commit is contained in:
Zef Hemel
2022-03-20 10:22:38 +01:00
parent 7352c6c612
commit 7e591c6f44
7 changed files with 181 additions and 39 deletions
+4 -1
View File
@@ -116,6 +116,9 @@ export class SocketServer {
}
close() {
(this.apis.get("index")! as IndexApi).db.destroy();
console.log("Closing server");
(this.apis.get("index")! as IndexApi).db.destroy().catch((err) => {
console.error(err);
});
}
}