summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-12 16:47:51 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-12 16:47:51 +0200
commit675ef382aef77e126e3bbbdabe95926ad735f430 (patch)
tree69e40a94d799aaec83290cc85689a30cc3bc1276 /src/Server.ts
parent:bug: :sparkles: fix templates (diff)
downloadserver-675ef382aef77e126e3bbbdabe95926ad735f430.tar.xz
:sparkles: RabbitMQ
Diffstat (limited to '')
-rw-r--r--src/Server.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Server.ts b/src/Server.ts

index 69222636..3e20695a 100644 --- a/src/Server.ts +++ b/src/Server.ts
@@ -3,7 +3,7 @@ import fs from "fs"; import { Connection } from "mongoose"; import { Server, ServerOptions } from "lambert-server"; import { Authentication, CORS } from "./middlewares/"; -import { Config, db } from "@fosscord/server-util"; +import { Config, db, RabbitMQ } from "@fosscord/server-util"; import i18next from "i18next"; import i18nextMiddleware, { I18next } from "i18next-http-middleware"; import i18nextBackend from "i18next-node-fs-backend"; @@ -58,6 +58,7 @@ export class FosscordServer extends Server { await this.setupSchema(); console.log("[Database] connected"); await Config.init(); + await RabbitMQ.init(); this.app.use(CORS); this.app.use(Authentication);