(accountId: string)
| 296 | } |
| 297 | |
| 298 | export 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 | |
| 306 | export function incrementWebSearchResults(accountId: string, count: number): void { |
| 307 | const db = getDb(); |