summary refs log tree commit diff
path: root/src/middlewares/RateLimit.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-16 11:22:51 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-16 11:22:51 +0100
commit4a815d302a819b1d4d86fd1970139ce23f9cd458 (patch)
tree62c9c69d9601dbf768f3c20d357b5543d4e029be /src/middlewares/RateLimit.ts
parent:bug: fix /guilds/ route type (diff)
downloadserver-4a815d302a819b1d4d86fd1970139ce23f9cd458.tar.xz
:fire: disable rate limit for now -> wait till mongoose model exists
Diffstat (limited to 'src/middlewares/RateLimit.ts')
-rw-r--r--src/middlewares/RateLimit.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/middlewares/RateLimit.ts b/src/middlewares/RateLimit.ts

index b015c7e0..f4b76dfe 100644 --- a/src/middlewares/RateLimit.ts +++ b/src/middlewares/RateLimit.ts
@@ -7,6 +7,7 @@ export function RateLimit({ count = 10, timespan = 1000 * 5, name = "/" }) { return async (req: Request, res: Response, next: NextFunction) => { return next(); // TODO: use new db mongoose models + /* let id = req.userid || getIpAdress(req); @@ -40,5 +41,6 @@ export function RateLimit({ count = 10, timespan = 1000 * 5, name = "/" }) { } return next(); + */ }; }