mirror of
https://github.com/valitydev/fistful-server.git
synced 2024-11-06 10:45:21 +00:00
FF-7 Fix swag args decoding (#27)
This commit is contained in:
parent
720a2e6549
commit
1b8c6a13b8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user