summary refs log tree commit diff
path: root/src/middlewares/GlobalRateLimit.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-14 19:01:41 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-14 19:01:41 +0100
commita94f7c76172d83b95f43b059b9a5af4299eb2f8d (patch)
treeab0ea2cf4c90d927747701abcc80a95d2d75721f /src/middlewares/GlobalRateLimit.ts
parentutil function to emit event (diff)
downloadserver-a94f7c76172d83b95f43b059b9a5af4299eb2f8d.tar.xz
switch to mongoose
Diffstat (limited to 'src/middlewares/GlobalRateLimit.ts')
-rw-r--r--src/middlewares/GlobalRateLimit.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/middlewares/GlobalRateLimit.ts b/src/middlewares/GlobalRateLimit.ts

index c729987a..33dc5e0f 100644 --- a/src/middlewares/GlobalRateLimit.ts +++ b/src/middlewares/GlobalRateLimit.ts
@@ -6,6 +6,8 @@ import { db } from "fosscord-server-util"; // TODO: increment count on serverside export async function GlobalRateLimit(req: Request, res: Response, next: NextFunction) { + return next(); + // TODO: use new db mongoose models if (!Config.get().limits.rate.ip.enabled) return next(); const ip = getIpAdress(req);