From 3aed655eb7e63385b5e7a120c67527346697c514 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Thu, 12 Aug 2021 16:47:51 +0200 Subject: :sparkles: RabbitMQ --- src/Server.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Server.ts') 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); -- cgit 1.5.1