summary refs log tree commit diff
path: root/src/gateway/Server.ts
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/gateway/Server.ts (renamed from gateway/src/Server.ts)5
1 files changed, 2 insertions, 3 deletions
diff --git a/gateway/src/Server.ts b/src/gateway/Server.ts

index 7e1489be..82fbeba2 100644 --- a/gateway/src/Server.ts +++ b/src/gateway/Server.ts
@@ -1,7 +1,6 @@ -import "missing-native-js-functions"; 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"; @@ -47,7 +46,7 @@ export class Server { } async start(): Promise<void> { - await initDatabase(); + await getOrInitialiseDatabase(); await Config.init(); await initEvent(); if (!this.server.listening) {