mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
mod_push_mnesia: Fix lookup of all host sessions
This commit is contained in:
parent
bb76da03ea
commit
75127a0deb
@ -128,9 +128,9 @@ lookup_sessions(LServer) ->
|
|||||||
timestamp = TS,
|
timestamp = TS,
|
||||||
service = PushLJID,
|
service = PushLJID,
|
||||||
node = Node,
|
node = Node,
|
||||||
xml = El})
|
xml = El} = Rec)
|
||||||
when S == LServer ->
|
when S == LServer ->
|
||||||
{TS, PushLJID, Node, El}
|
Rec
|
||||||
end),
|
end),
|
||||||
Records = mnesia:dirty_select(push_session, MatchSpec),
|
Records = mnesia:dirty_select(push_session, MatchSpec),
|
||||||
{ok, records_to_sessions(Records)}.
|
{ok, records_to_sessions(Records)}.
|
||||||
|
Loading…
Reference in New Issue
Block a user