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

Function incrementWebSearchRequest

src/utils/usageStore.ts:298–304  ·  view source on GitHub ↗
(accountId: string)

Source from the content-addressed store, hash-verified

296}
297
298export function incrementWebSearchRequest(accountId: string): void {
299 const db = getDb();
300 db.prepare(`
301 INSERT INTO web_search_counts (account_id, request_count, result_count) VALUES (?, 1, 0)
302 ON CONFLICT(account_id) DO UPDATE SET request_count = request_count + 1
303 `).run(accountId);
304}
305
306export function incrementWebSearchResults(accountId: string, count: number): void {
307 const db = getDb();

Callers

nothing calls this directly

Calls 1

getDbFunction · 0.85

Tested by

no test coverage detected