Skip to content

Commit

Permalink
fix: sort (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
grutt authored Aug 21, 2024
1 parent 651be54 commit 46956a4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 16 deletions.
5 changes: 4 additions & 1 deletion pkg/repository/prisma/dbsqlc/events.sql
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ LEFT JOIN
LEFT JOIN
"WorkflowRun" as runs ON runTriggers."parentId" = runs."id"
GROUP BY
events."id", events."createdAt";
events."id", events."createdAt"
ORDER BY
case when @orderBy = 'createdAt ASC' THEN events."createdAt" END ASC ,
case when @orderBy = 'createdAt DESC' then events."createdAt" END DESC;

-- name: GetEventsForRange :many
SELECT
Expand Down
33 changes: 18 additions & 15 deletions pkg/repository/prisma/dbsqlc/events.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 46956a4

Please sign in to comment.