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> |
||
|---|---|---|
| .. | ||
| aliasRepo.js | ||
| apiKeysRepo.js | ||
| combosRepo.js | ||
| connectionsRepo.js | ||
| disabledModelsRepo.js | ||
| nodesRepo.js | ||
| pricingRepo.js | ||
| proxyPoolsRepo.js | ||
| requestDetailsRepo.js | ||
| settingsRepo.js | ||
| usageRepo.js | ||