Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gxueatlassian committed Dec 14, 2023
1 parent dbbd9c3 commit 4d08919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/api/api-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ ApiRouter.use(slauthMiddleware);

const rateLimitMiddleware = rateLimit({
store: new RedisStore({
client: new IORedis(getRedisInfo("express-rate-limit"))
client: new IORedis(getRedisInfo("express-rate-limit")) as any
}),
windowMs: 60 * 1000, // 1 minutes
max: 60 // limit each IP to 60 requests per windowMs
Expand Down

0 comments on commit 4d08919

Please sign in to comment.