Fix query for get_unread_push_actions_for_user_in_range

pull/724/head
Erik Johnston 2016-04-14 11:08:31 +01:00
parent ceeb5b909f
commit a2546b9082
1 changed files with 2 additions and 1 deletions

View File

@ -133,9 +133,10 @@ class EventPushActionsStore(SQLBaseStore):
" ep.topological_ordering > rl.topological_ordering"
" OR ("
" ep.topological_ordering = rl.topological_ordering"
" AND ep.stream_ordering > ?"
" AND ep.stream_ordering > rl.stream_ordering"
" )"
" )"
" AND ep.stream_ordering > ?"
" AND ep.user_id = ?"
" AND ep.user_id = rl.user_id"
)