summary refs log tree commit diff
path: root/synapse/storage/event_federation.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/storage/event_federation.py')
-rw-r--r--synapse/storage/event_federation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/event_federation.py b/synapse/storage/event_federation.py
index 9ec67ad0c4..ec6dbe5492 100644
--- a/synapse/storage/event_federation.py
+++ b/synapse/storage/event_federation.py
@@ -366,7 +366,7 @@ class EventFederationStore(SQLBaseStore):
         """)
 
         def get_forward_extremeties_for_room_txn(txn):
-            txn.execute(sql, (room_id, stream_ordering,))
+            txn.execute(sql, (stream_ordering, room_id))
             rows = txn.fetchall()
             return [event_id for event_id, in rows]