mirror of
https://github.com/valitydev/fistful-server.git
synced 2024-11-06 02:35:18 +00:00
fixed
This commit is contained in:
parent
e415cfc39a
commit
1a9cac77bd
@ -181,7 +181,8 @@ create(Params) ->
|
||||
valid = ff_resource:check_resource(Resource),
|
||||
CreatedAt = ff_time:now(),
|
||||
Method = ff_resource:method(Resource),
|
||||
Terms = ff_identity:get_terms(Identity, #{timestamp => CreatedAt}),
|
||||
TermVarset = #{currency => ff_dmsl_codec:marshal(currency_ref, CurrencyID)},
|
||||
Terms = ff_identity:get_terms(Identity, #{timestamp => CreatedAt, varset => TermVarset}),
|
||||
valid = unwrap(terms, ff_party:validate_destination_creation(Terms, Method)),
|
||||
Currency = unwrap(currency, ff_currency:get(CurrencyID)),
|
||||
Events = unwrap(ff_account:create(ID, Identity, Currency)),
|
||||
|
Loading…
Reference in New Issue
Block a user