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
1 changed files with 2 additions and 2 deletions

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)}.