summary refs log tree commit diff
path: root/gateway/src/Server.ts
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-08 22:55:14 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-09 23:28:27 +0200
commitee01a689e255bcf8775387b3d5e4e8a6577908a3 (patch)
treec4af8a9baf8bd349bded7e7b6b7e4c8329a75f37 /gateway/src/Server.ts
parentFix accidental edit in benchmark (diff)
downloadserver-ee01a689e255bcf8775387b3d5e4e8a6577908a3.tar.xz
rename initDatabase to clarify function
Diffstat (limited to 'gateway/src/Server.ts')
-rw-r--r--gateway/src/Server.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/gateway/src/Server.ts b/gateway/src/Server.ts
index 254820c9..82fbeba2 100644
--- a/gateway/src/Server.ts
+++ b/gateway/src/Server.ts
@@ -1,6 +1,6 @@
 import dotenv from "dotenv";
 dotenv.config();
-import { closeDatabase, Config, initDatabase, initEvent } from "@fosscord/util";
+import { closeDatabase, Config, getOrInitialiseDatabase, initEvent } from "@fosscord/util";
 import ws from "ws";
 import { Connection } from "./events/Connection";
 import http from "http";
@@ -46,7 +46,7 @@ export class Server {
 	}
 
 	async start(): Promise<void> {
-		await initDatabase();
+		await getOrInitialiseDatabase();
 		await Config.init();
 		await initEvent();
 		if (!this.server.listening) {