diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-22 14:30:03 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-12-22 14:30:03 +1100 |
commit | a3630fdba4426171aa2e25a79a1232565f74e992 (patch) | |
tree | 574e21e9b0af146a38049cb4872a194ea686fd11 /scripts | |
parent | Fix redirect when test client disabled (diff) | |
download | server-a3630fdba4426171aa2e25a79a1232565f74e992.tar.xz |
Fix sync script not closing for some dbms
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/schema.js | 2 | ||||
-rw-r--r-- | scripts/syncronise.js | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/scripts/schema.js b/scripts/schema.js index be57adc2..3a69d002 100644 --- a/scripts/schema.js +++ b/scripts/schema.js @@ -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); diff --git a/scripts/syncronise.js b/scripts/syncronise.js index 6ce47278..3ecb516e 100644 --- a/scripts/syncronise.js +++ b/scripts/syncronise.js @@ -16,4 +16,5 @@ const { initDatabase } = require(".."); console.log("synchronising"); await db.synchronize(); console.log("done"); + db.destroy(); })(); \ No newline at end of file |