diff --git a/synapse/storage/event_push_actions.py b/synapse/storage/event_push_actions.py index 6832274eb..7de3e8c58 100644 --- a/synapse/storage/event_push_actions.py +++ b/synapse/storage/event_push_actions.py @@ -96,7 +96,9 @@ class EventPushActionsStore(SQLBaseStore): topological_ordering, stream_ordering ) - # First get number of notifications + # First get number of notifications. + # We don't need to put a notif=1 clause as all rows always have + # notif=1 sql = ( "SELECT count(*)" " FROM event_push_actions ea"