Fix Order by
All checks were successful
/ release (push) Successful in 28s

This commit is contained in:
Samuel Lorch 2024-07-14 02:33:17 +02:00
parent 4c3df8fef6
commit 64315356ae

View file

@ -206,7 +206,7 @@ func generateStats(ctx context.Context) ([]ChartData, error) {
FROM tasks FROM tasks
WHERE status = $1 OR status = $2 WHERE status = $1 OR status = $2
GROUP BY 1,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 { if err != nil {
return nil, fmt.Errorf("Query Task Status Day: %w", err) return nil, fmt.Errorf("Query Task Status Day: %w", err)
} }