mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-06 13:58:05 +03:00
Fix #170
This commit is contained in:
@@ -30,6 +30,8 @@ export const RateLimitMiddleware = rateLimit({
|
||||
message: {
|
||||
success: false,
|
||||
description: `You have exceeded ${ServerConfig.RATE_LIMIT} requests per minute. Please wait.`,
|
||||
status: 429,
|
||||
message: "You're being rate limited.",
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
} as any, // @todo #170 report this as a bug with rate-limit types.,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user