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:
parent
9b8f26c512
commit
2ec59d2ff2
@ -50,7 +50,7 @@ function modify(obj) {
|
|||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
const program = TJS.programFromConfig(
|
const program = TJS.programFromConfig(
|
||||||
"tsconfig.json",
|
path.join(__dirname, "..", "tsconfig.json"),
|
||||||
walk(path.join(__dirname, "..", "src", "util", "schemas"))
|
walk(path.join(__dirname, "..", "src", "util", "schemas"))
|
||||||
);
|
);
|
||||||
const generator = TJS.buildGenerator(program, settings);
|
const generator = TJS.buildGenerator(program, settings);
|
||||||
|
@ -16,4 +16,5 @@ const { initDatabase } = require("..");
|
|||||||
console.log("synchronising");
|
console.log("synchronising");
|
||||||
await db.synchronize();
|
await db.synchronize();
|
||||||
console.log("done");
|
console.log("done");
|
||||||
|
db.destroy();
|
||||||
})();
|
})();
|
Loading…
Reference in New Issue
Block a user