25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

mod_push_mnesia: Fix lookup of all host sessions

This commit is contained in:
Holger Weiss 2018-06-18 23:05:08 +02:00
parent bb76da03ea
commit 75127a0deb

View File

@ -128,9 +128,9 @@ lookup_sessions(LServer) ->
timestamp = TS,
service = PushLJID,
node = Node,
xml = El})
xml = El} = Rec)
when S == LServer ->
{TS, PushLJID, Node, El}
Rec
end),
Records = mnesia:dirty_select(push_session, MatchSpec),
{ok, records_to_sessions(Records)}.