From d5e4b5597f55cdc0a1900487c58311b48d664cec Mon Sep 17 00:00:00 2001 From: yuriha-chan Date: Sun, 10 Dec 2023 22:55:25 +0900 Subject: [PATCH] Fix rate limit regression --- packages/backend/src/server/api/RateLimiterService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/RateLimiterService.ts b/packages/backend/src/server/api/RateLimiterService.ts index 0e644aa091ab..9aafffe58499 100644 --- a/packages/backend/src/server/api/RateLimiterService.ts +++ b/packages/backend/src/server/api/RateLimiterService.ts @@ -67,7 +67,7 @@ export class RateLimiterService { const max = (): void => { const limiter = new Limiter({ id: `${actor}:${limitation.key}`, - duration: limitation.duration! * factor, + duration: limitation.duration!, max: limitation.max! / factor, db: this.redisClient, });