Function
getTodayRequestCount
(accountId: string, resetDate: string)
Source from the content-addressed store, hash-verified
| 183 | } |
| 184 | |
| 185 | export function getTodayRequestCount(accountId: string, resetDate: string): number { |
| 186 | const db = getDb(); |
| 187 | const row = db.prepare( |
| 188 | "SELECT count FROM daily_request_counts WHERE account_id = ? AND reset_date = ?" |
| 189 | ).get(accountId, resetDate) as any; |
| 190 | return row?.count ?? 0; |
| 191 | } |
| 192 | |
| 193 | export function getAllTodayRequestCounts(resetDate: string): Map<string, number> { |
| 194 | const db = getDb(); |
Callers
nothing calls this directly
Tested by
no test coverage detected