Commit 60d8f6bf authored by Ramallo Alejandro M.'s avatar Ramallo Alejandro M.

fix to wrong return introduced in last refactoring

parent 30b38709
Pipeline #67790162 failed with stage
......@@ -105,20 +105,16 @@ handle_call(#call{procedure_uri = ?LOAD_API} = M, Ctxt) ->
end,
bondy:send(bondy_context:peer_id(Ctxt), R);
handle_call(
#call{procedure_uri = ?LIST} = M,
Ctxt) ->
handle_call(#call{procedure_uri = ?LIST} = M, Ctxt) ->
R = case bondy_wamp_utils:validate_admin_call_args(M, Ctxt, 0) of
{ok, [_]} ->
{ok, []} ->
bondy_wamp_utils:maybe_error(catch bondy_api_gateway:list(), M);
{error, WampError} ->
WampError
end,
bondy:send(bondy_context:peer_id(Ctxt), R);
handle_call(
#call{procedure_uri = ?LOOKUP} = M,
Ctxt) ->
handle_call(#call{procedure_uri = ?LOOKUP} = M, Ctxt) ->
R = case bondy_wamp_utils:validate_admin_call_args(M, Ctxt, 1) of
{ok, [Id]} ->
bondy_wamp_utils:maybe_error(catch bondy_api_gateway:lookup(Id), M);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment