header footer metrics update and credits by site fixes

This commit is contained in:
IGNY8 VPS (Salman)
2026-01-12 05:28:36 +00:00
parent 95d8ade942
commit 368601f68c
12 changed files with 339 additions and 215 deletions

View File

@@ -165,7 +165,7 @@ export function useModuleStats() {
// Total images
fetchImages({ ...baseFilters }),
// Credits usage from billing summary
fetchAPI('/v1/billing/credits/usage/summary/').catch(() => ({
fetchAPI(`/v1/billing/credits/usage/summary/?site_id=${activeSite.id}${activeSector?.id ? `&sector_id=${activeSector.id}` : ''}`).catch(() => ({
data: { by_operation: {} }
})),
]);