Skip to content

Commit

Permalink
fix: order by player name
Browse files Browse the repository at this point in the history
  • Loading branch information
truc9 committed Dec 14, 2024
1 parent f64a543 commit 51e81c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/reporting.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (s *ReportingService) GetUnpaidReport() ([]UnpaidByPlayer, error) {
JOIN cte_registration_history cte2 ON cte2.player_id = p.id
WHERE r.is_paid = false
GROUP BY p.id, cte2.registration_summary
ORDER by unpaid_amount DESC
ORDER by player_name
`).Scan(&result).Error; err != nil {
return nil, err
}
Expand Down

0 comments on commit 51e81c9

Please sign in to comment.