| 45 | }; |
| 46 | // hsingh's code from cms |
| 47 | interface RateLimiter { |
| 48 | timestamps: Date[]; |
| 49 | } |
| 50 | const userRateLimits = new Map<string, RateLimiter>(); |
| 51 | |
| 52 | export const rateLimit = (userId: string, rateLimitCount: number, rateLimitInterval: number): boolean => { |
nothing calls this directly
no outgoing calls
no test coverage detected