update dashboard

This commit is contained in:
efrilm
2025-10-20 20:36:17 +07:00
parent f391b6d853
commit 0c3e1db502
2 changed files with 78 additions and 5 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ func (s *AnalyticsServiceImpl) GetDashboard(ctx context.Context, req *contract.A
response.DepartmentStats = s.mapDepartmentStats(deptData)
// Get monthly trend (last 12 months)
monthlyData, err := s.analyticsRepo.GetMonthlyTrend(ctx, 12)
monthlyData, err := s.analyticsRepo.GetMonthlyTrendByUserID(ctx, userID, 12)
if err != nil {
return nil, err
}