Files
OmniRoute/src/app
ivan_yakimkin 9bfbbd65f5 fix: API Manager usage stats showing 0 for all registered keys
The fetchUsageStats function fetched call-logs and filtered them by
key.id === log.apiKeyId. However, the API key table uses UUIDs while
the call-log pipeline stores a different identifier in the apiKeyId
field — so the comparison never matched, yielding 0 requests for every
key.

Fix by sourcing request counts from the /api/usage/analytics endpoint
(same data that already powers the 'API Key Breakdown' table on the
Analytics tab), matched by apiKeyName. The lastUsed timestamp is still
derived from call-logs, also matched by name.

Both requests are issued in parallel via Promise.all to avoid
increasing page load time.
2026-04-16 11:31:53 +03:00
..
2026-03-09 15:12:51 -03:00
2026-03-09 15:12:51 -03:00
2026-03-09 15:12:51 -03:00
2026-03-09 15:12:51 -03:00
2026-03-09 15:12:51 -03:00
2026-03-09 15:12:51 -03:00
2026-03-09 15:12:51 -03:00
2026-03-09 15:12:51 -03:00