9router/src/lib/db/repos
fjia 4078f36ced fix(usage): add missing await on getAdapter() in getRecentLogs
getAdapter() is async; without await, db was a Promise so db.all() threw
and the outer try/catch returned [] silently — usage logs endpoints
(/api/usage/logs, /api/usage/request-logs) always returned empty data.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-17 10:08:36 +07:00
..
aliasRepo.js feat(db): migrate from lowdb to SQLite with repos pattern 2026-05-09 17:48:20 +07:00
apiKeysRepo.js feat(db): migrate from lowdb to SQLite with repos pattern 2026-05-09 17:48:20 +07:00
combosRepo.js feat(db): migrate from lowdb to SQLite with repos pattern 2026-05-09 17:48:20 +07:00
connectionsRepo.js feat(providers/codex): bulk add accounts via JSON 2026-06-08 10:08:46 +07:00
disabledModelsRepo.js feat(db): migrate from lowdb to SQLite with repos pattern 2026-05-09 17:48:20 +07:00
nodesRepo.js feat(db): migrate from lowdb to SQLite with repos pattern 2026-05-09 17:48:20 +07:00
pricingRepo.js fix(translator): ESM-safe registry + tool-id pairing + responses max_tokens; add real-creds tests 2026-06-15 11:38:43 +07:00
proxyPoolsRepo.js feat(db): migrate from lowdb to SQLite with repos pattern 2026-05-09 17:48:20 +07:00
requestDetailsRepo.js refactor(app): DRY pass — split large files, extract shared utils 2026-06-14 19:31:09 +07:00
settingsRepo.js Add OIDC dashboard auth (#1020) 2026-05-12 09:43:42 +07:00
usageRepo.js fix(usage): add missing await on getAdapter() in getRecentLogs 2026-06-17 10:08:36 +07:00