fix: add missing userTrend/aiCallTrend fields to dashboard stats response
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 43s

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
WangDL 2026-05-24 17:41:53 +08:00
parent fb1c6fd216
commit 5816ddf488

View File

@ -57,7 +57,9 @@ export class AdminDashboardService {
todayAiCalls, todayAiCost: Math.round(todayAiCost * 100) / 100, todayAiCalls, todayAiCost: Math.round(todayAiCost * 100) / 100,
failedTasks, failedTasks,
upcomingExpirations, upcomingExpirations,
serverSummary: null, // filled by server monitor userTrend: [] as { date: string; value: number }[],
aiCallTrend: [] as { date: string; value: number }[],
serverSummary: null,
}; };
// Cache result // Cache result