25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

mod_pubsub: Fix matching of set_node/1 result

nodetree_tree_sql:set_node/1 returns {result, NodeIdx} on success, not
{ok, NodeIdx}.  Thanks to Christophe Romain for spotting this.
This commit is contained in:
Holger Weiss 2016-06-23 14:23:24 +02:00
parent 1b5c50a384
commit 1794dd19d0

View File

@ -3873,7 +3873,7 @@ set_configure(Host, Node, From, Els, Lang) ->
set_node,
[N#pubsub_node{options = NewOpts}])
of
{ok, Nidx} -> {result, ok};
{result, Nidx} -> {result, ok};
ok -> {result, ok};
Err -> Err
end;