Merge branch 'hotfix/2.13.1'

This commit is contained in:
Knee Cola
2025-12-08 01:37:57 +01:00

View File

@@ -60,11 +60,11 @@ export function checkUploadRateLimit(ipAddress: string): { allowed: boolean; rem
*/
export function cleanupRateLimitStore() {
const now = Date.now();
for (const [key, entry] of rateLimitStore.entries()) {
rateLimitStore.forEach((entry, key) => {
if (now > entry.resetAt) {
rateLimitStore.delete(key);
}
}
});
}
// Auto-cleanup every 10 minutes