Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix Postgres query.
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Jul 27, 2022
1 parent 9a30ede commit 3cfd3c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/storage/databases/main/relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ async def get_threads(
relation_type = '{RelationTypes.THREAD}'
{pagination_clause}
GROUP BY relates_to_id
ORDER BY topological_ordering DESC, stream_ordering DESC
ORDER BY MAX(topological_ordering) DESC, MAX(stream_ordering) DESC
LIMIT ?
"""

Expand Down

0 comments on commit 3cfd3c5

Please sign in to comment.