1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-22 18:32:29 +01:00

Fix sync script not closing for some dbms

This commit is contained in:
Madeline 2022-12-22 14:30:03 +11:00
parent b47b6de102
commit a3630fdba4
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47
2 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,7 @@ function modify(obj) {
function main() {
const program = TJS.programFromConfig(
"tsconfig.json",
path.join(__dirname, "..", "tsconfig.json"),
walk(path.join(__dirname, "..", "src", "util", "schemas"))
);
const generator = TJS.buildGenerator(program, settings);

View File

@ -16,4 +16,5 @@ const { initDatabase } = require("..");
console.log("synchronising");
await db.synchronize();
console.log("done");
db.destroy();
})();