mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
typo fix
This commit is contained in:
parent
75d2cbcb14
commit
f05a4d1638
@ -25,7 +25,7 @@ purge() ->
|
||||
I=element(3,N),
|
||||
lists:foreach(fun(JID) ->
|
||||
case mnesia:dirty_read({pubsub_state, {JID, I}}) of
|
||||
[{pubsub_state, K, _, _, [{subscribed,S}]}] -> mnesia:dirty_delete({pubsub_subscription, S});
|
||||
[{pubsub_state, K, _, _, _, [{subscribed,S}]}] -> mnesia:dirty_delete({pubsub_subscription, S});
|
||||
_ -> ok
|
||||
end,
|
||||
mnesia:dirty_delete({pubsub_state, {JID, I}})
|
||||
|
@ -33,7 +33,7 @@ item(ItemId, NodeId) ->
|
||||
[I] -> I;
|
||||
_ -> undefined
|
||||
end.
|
||||
items(NodeId) -> mnesia:dirty_index_read(pubsub_item, NodeIdi, #pubsub_item.nodeidx).
|
||||
items(NodeId) -> mnesia:dirty_index_read(pubsub_item, NodeId, #pubsub_item.nodeidx).
|
||||
itemid(I) -> element(1, I#pubsub_item.itemid).
|
||||
itemids(NodeId) -> [itemid(I) || I <- items(NodeId)].
|
||||
items_by_id(ItemId) -> mnesia:dirty_match_object(#pubsub_item{itemid={ItemId, '_'}, _='_'}).
|
||||
|
Loading…
Reference in New Issue
Block a user