MCPcopy Create free account
hub / github.com/aptdnfapt/qwen-code-oai-proxy / getTodayRequestCount

Function getTodayRequestCount

src/utils/usageStore.ts:185–191  ·  view source on GitHub ↗
(accountId: string, resetDate: string)

Source from the content-addressed store, hash-verified

183}
184
185export 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
193export function getAllTodayRequestCounts(resetDate: string): Map<string, number> {
194 const db = getDb();

Callers

nothing calls this directly

Calls 1

getDbFunction · 0.85

Tested by

no test coverage detected