summary refs log tree commit diff
path: root/gateway/src/Server.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-13 13:03:18 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-13 13:03:18 +0200
commita687b489d745c52e207637b6595edcb3eabe8f2d (patch)
tree98d45b035c2c9589d9702a9a2f442b62f9a3ab99 /gateway/src/Server.ts
parentFix naming (diff)
parentabstract Event emission (diff)
downloadserver-a687b489d745c52e207637b6595edcb3eabe8f2d.tar.xz
Merge branch 'master' into pr/darkhpp/261-2
Diffstat (limited to 'gateway/src/Server.ts')
-rw-r--r--gateway/src/Server.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/gateway/src/Server.ts b/gateway/src/Server.ts
index d4b3271c..482545f1 100644
--- a/gateway/src/Server.ts
+++ b/gateway/src/Server.ts
@@ -1,7 +1,7 @@
 import "missing-native-js-functions";
 import dotenv from "dotenv";
 dotenv.config();
-import { Config, db, RabbitMQ } from "@fosscord/server-util";
+import { Config, db, initEvent, RabbitMQ } from "@fosscord/util";
 import { Server as WebSocketServer } from "ws";
 import { Connection } from "./events/Connection";
 import http from "http";
@@ -40,8 +40,7 @@ export class Server {
 		await (db as Promise<Connection>);
 		await this.setupSchema();
 		await Config.init();
-		await RabbitMQ.init();
-		console.log("[Database] connected");
+		await initEvent();
 		if (!this.server.listening) {
 			this.server.listen(this.port);
 			console.log(`[Gateway] online on 0.0.0.0:${this.port}`);