Fix query for get_unread_push_actions_for_user_in_range
This commit is contained in:
parent
ceeb5b909f
commit
a2546b9082
|
@ -133,9 +133,10 @@ class EventPushActionsStore(SQLBaseStore):
|
||||||
" ep.topological_ordering > rl.topological_ordering"
|
" ep.topological_ordering > rl.topological_ordering"
|
||||||
" OR ("
|
" OR ("
|
||||||
" ep.topological_ordering = rl.topological_ordering"
|
" ep.topological_ordering = rl.topological_ordering"
|
||||||
|
" AND ep.stream_ordering > rl.stream_ordering"
|
||||||
|
" )"
|
||||||
|
" )"
|
||||||
" AND ep.stream_ordering > ?"
|
" AND ep.stream_ordering > ?"
|
||||||
" )"
|
|
||||||
" )"
|
|
||||||
" AND ep.user_id = ?"
|
" AND ep.user_id = ?"
|
||||||
" AND ep.user_id = rl.user_id"
|
" AND ep.user_id = rl.user_id"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue