mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
fix badmatch on remove_user on PEP nodes (EJAB-1649)
This commit is contained in:
parent
8621a8f006
commit
48819d163a
@ -144,12 +144,10 @@ create_node(NodeIdx, Owner) ->
|
|||||||
).
|
).
|
||||||
|
|
||||||
delete_node(Removed) ->
|
delete_node(Removed) ->
|
||||||
{result, {_, _, Removed}} = node_hometree:delete_node(Removed),
|
case node_hometree:delete_node(Removed) of
|
||||||
{result, {[], Removed}}.
|
{result, {_, _, Result}} -> {result, {[], Result}};
|
||||||
% case node_hometree:delete_node(Removed) of
|
Error -> Error
|
||||||
% {result, {_, _, Removed}} -> {result, {[], Removed}};
|
end.
|
||||||
% Error -> Error
|
|
||||||
% end.
|
|
||||||
|
|
||||||
-spec(subscribe_node/8 ::
|
-spec(subscribe_node/8 ::
|
||||||
(
|
(
|
||||||
|
@ -156,7 +156,7 @@ create_node(NodeIdx, Owner) ->
|
|||||||
).
|
).
|
||||||
delete_node(Removed) ->
|
delete_node(Removed) ->
|
||||||
case node_hometree_odbc:delete_node(Removed) of
|
case node_hometree_odbc:delete_node(Removed) of
|
||||||
{result, {_, _, Removed}} -> {result, {[], Removed}};
|
{result, {_, _, Result}} -> {result, {[], Result}};
|
||||||
Error -> Error
|
Error -> Error
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user