From 54b6a8ea31fd611c7affe2d4d1158b839357db8c Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Tue, 16 Feb 2021 21:20:07 +0100 Subject: :bug: fix db --- src/Server.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/Server.ts b/src/Server.ts index d08794c8..fa4111db 100644 --- a/src/Server.ts +++ b/src/Server.ts @@ -10,7 +10,6 @@ import i18nextMiddleware, { I18next } from "i18next-http-middleware"; import i18nextBackend from "i18next-node-fs-backend"; import { ErrorHandler } from "./middlewares/ErrorHandler"; import { BodyParser } from "./middlewares/BodyParser"; -import mongoose from "mongoose"; export interface DiscordServerOptions extends ServerOptions {} @@ -43,7 +42,7 @@ export class DiscordServer extends Server { async start() { // @ts-ignore - await mongoose.connect(process.env.MONGO_URL); + await (db as Promise); await this.setupSchema(); console.log("[DB] connected"); await Promise.all([Config.init()]); -- cgit 1.5.1