FF-7 Fix swag args decoding (#27)

This commit is contained in:
Andrey Fadeev 2018-10-29 14:25:09 +03:00 committed by GitHub
parent 720a2e6549
commit 1b8c6a13b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -552,9 +552,9 @@ from_swag(destination_resource, #{
}}; }};
from_swag(withdrawal_params, Params) -> from_swag(withdrawal_params, Params) ->
#{ #{
source => maps:get(<<"wallet">> , Params), wallet_id => maps:get(<<"wallet">> , Params),
destination => maps:get(<<"destination">>, Params), destination_id => maps:get(<<"destination">>, Params),
body => from_swag(withdrawal_body , maps:get(<<"body">>, Params)) body => from_swag(withdrawal_body , maps:get(<<"body">>, Params))
}; };
%% TODO %% TODO
%% - remove this clause when we fix negative accounts and turn on validation in swag %% - remove this clause when we fix negative accounts and turn on validation in swag