summary refs log tree commit diff
path: root/src/Server.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-05-23 20:48:25 +0200
committerGitHub <noreply@github.com>2021-05-23 20:48:25 +0200
commite1f0eb3c2a0b302641b0b88afcd8d29d85821a2c (patch)
tree29c5d85351363f7f189a61e2da52c214e597c0dd /src/Server.ts
parentMerge pull request #146 from luth31/upstream (diff)
parentFix: No more type casting required, rather take the gernics (diff)
downloadserver-e1f0eb3c2a0b302641b0b88afcd8d29d85821a2c.tar.xz
Merge pull request #147 from DiegoMagdaleno/master
New way to do config no more hardcoded localhost
Diffstat (limited to 'src/Server.ts')
-rw-r--r--src/Server.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Server.ts b/src/Server.ts

index e6d3d9c9..ca1d1c1c 100644 --- a/src/Server.ts +++ b/src/Server.ts
@@ -3,7 +3,7 @@ import fs from "fs/promises"; import { Connection } from "mongoose"; import { Server, ServerOptions } from "lambert-server"; import { Authentication, CORS, GlobalRateLimit } from "./middlewares/"; -import Config from "./util/Config"; +import * as Config from "./util/Config"; import { db } from "@fosscord/server-util"; import i18next from "i18next"; import i18nextMiddleware, { I18next } from "i18next-http-middleware"; @@ -55,7 +55,7 @@ export class FosscordServer extends Server { await (db as Promise<Connection>); await this.setupSchema(); console.log("[DB] connected"); - await Promise.all([Config.init()]); + //await Promise.all([Config.init()]); this.app.use(GlobalRateLimit); this.app.use(Authentication);