api-node/src/security/middlewares/rateLimitMiddleware.ts
Function rateLimitMiddleware
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const rateLimitMiddleware = (
redis: Redis,
points: number = POINTS,
duration: number = DURATION,
burstPointsRate: number = BURST_POINTS_RATE,