summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-22 14:30:03 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-22 14:30:03 +1100
commit2ec59d2ff2d03353ff1b34e33e5c675b374c6bc1 (patch)
tree9dd6d4ea475812bff201dc2ef9b7d4231353a589
parentFix redirect when test client disabled (diff)
downloadserver-2ec59d2ff2d03353ff1b34e33e5c675b374c6bc1.tar.xz
Fix sync script not closing for some dbms
-rw-r--r--scripts/schema.js2
-rw-r--r--scripts/syncronise.js1
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