mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-29 03:17:07 -05:00
Fix 500 error with Postgres when looking backwards with the MSC3030 /timestamp_to_event
endpoint (#12024)
This commit is contained in:
parent
40e256e7aa
commit
5a6911598a
1
changelog.d/12024.bugfix
Normal file
1
changelog.d/12024.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix 500 error with Postgres when looking backwards with the [MSC3030](https://github.com/matrix-org/matrix-doc/pull/3030) `/timestamp_to_event?dir=b` endpoint.
|
@ -1854,7 +1854,7 @@ class EventsWorkerStore(SQLBaseStore):
|
|||||||
forward_edge_query = """
|
forward_edge_query = """
|
||||||
SELECT 1 FROM event_edges
|
SELECT 1 FROM event_edges
|
||||||
/* Check to make sure the event referencing our event in question is not rejected */
|
/* Check to make sure the event referencing our event in question is not rejected */
|
||||||
LEFT JOIN rejections ON event_edges.event_id == rejections.event_id
|
LEFT JOIN rejections ON event_edges.event_id = rejections.event_id
|
||||||
WHERE
|
WHERE
|
||||||
event_edges.room_id = ?
|
event_edges.room_id = ?
|
||||||
AND event_edges.prev_event_id = ?
|
AND event_edges.prev_event_id = ?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user