summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-09-08 09:40:10 +0100
committerDavid Baker <dave@matrix.org>2016-09-08 09:40:10 +0100
commitc5b49eb7ca7327cba0e3658b1ec84cca823c8b54 (patch)
tree17a0b35da4bc10eb948b9f519d42eb4ff63501dd
parentMerge pull request #1077 from matrix-org/markjh/device_logging (diff)
downloadsynapse-c5b49eb7ca7327cba0e3658b1ec84cca823c8b54.tar.xz
Fix /notifications API when used with `from` param
-rw-r--r--synapse/storage/event_push_actions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/event_push_actions.py b/synapse/storage/event_push_actions.py
index eb15fb751b..56dce4b616 100644
--- a/synapse/storage/event_push_actions.py
+++ b/synapse/storage/event_push_actions.py
@@ -342,7 +342,7 @@ class EventPushActionsStore(SQLBaseStore):
         def f(txn):
             before_clause = ""
             if before:
-                before_clause = "AND stream_ordering < ?"
+                before_clause = "AND epa.stream_ordering < ?"
                 args = [user_id, before, limit]
             else:
                 args = [user_id, limit]