( rateLimitsByModel: Record<string, FreebuffSessionRateLimit>, )
| 197 | } |
| 198 | |
| 199 | function nonEmptyRateLimitsByModel( |
| 200 | rateLimitsByModel: Record<string, FreebuffSessionRateLimit>, |
| 201 | ): { rateLimitsByModel: Record<string, FreebuffSessionRateLimit> } | {} { |
| 202 | return Object.keys(rateLimitsByModel).length > 0 ? { rateLimitsByModel } : {} |
| 203 | } |
| 204 | |
| 205 | export interface SessionDeps { |
| 206 | getSessionRow: (userId: string) => Promise<InternalSessionRow | null> |
no outgoing calls
no test coverage detected