Skip to content

Commit

Permalink
adjust Prague emailer result sort order
Browse files Browse the repository at this point in the history
  • Loading branch information
mipyykko committed Jun 7, 2023
1 parent cb4fccb commit d3c0c04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/bin/pragueStatsEmailer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const pragueStatsEmailer = async () => {
AND ucs.other->>'bai_completion' = 'true'
AND u.email ILIKE '%@vse.cz'
GROUP BY co.tier, u.email, co.completion_date
ORDER BY co.tier, u.email, co.completion_date;
ORDER BY co.completion_date DESC, u.email, co.tier;
`

const tiers: Record<number, Array<string>> = {}
Expand Down

0 comments on commit d3c0c04

Please sign in to comment.