Skip to content

Commit

Permalink
Group relations by type also.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Jun 3, 2023
1 parent 493330c commit b369cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queries.sql
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ WHERE
-- AND tokens @@ (CASE WHEN $4 != '' THEN plainto_tsquery($4::regconfig, $5::TEXT) ELSE to_tsquery($5) END)
AND from_id = ANY($4::INT[])
AND (CASE WHEN $5 != '' THEN relations.status = $5::entry_status ELSE TRUE END)
ORDER BY relations.weight, relations.type;
ORDER BY relations.weight, relations.types;

-- name: get-pending-entries
WITH ids AS (
Expand Down

0 comments on commit b369cb8

Please sign in to comment.