diff --git a/server/stats.go b/server/stats.go index c8600a5..dfbc2b9 100644 --- a/server/stats.go +++ b/server/stats.go @@ -206,7 +206,7 @@ func generateStats(ctx context.Context) ([]ChartData, error) { FROM tasks WHERE status = $1 OR status = $2 GROUP BY 1,2 - ORDER BY updated_at ;`, constants.TASK_STATUS_SUCCESS, constants.TASK_STATUS_FAILED) + ORDER BY date ;`, constants.TASK_STATUS_SUCCESS, constants.TASK_STATUS_FAILED) if err != nil { return nil, fmt.Errorf("Query Task Status Day: %w", err) }