mirror of
https://github.com/valitydev/capi-v2.git
synced 2024-11-06 01:55:20 +00:00
parent
38f2030f36
commit
9d25ab0199
2
Makefile
2
Makefile
@ -61,7 +61,7 @@ start: submodules
|
||||
devrel: submodules
|
||||
$(REBAR) release
|
||||
|
||||
release: distclean generate
|
||||
release: submodules distclean generate
|
||||
$(REBAR) as prod release
|
||||
|
||||
clean:
|
||||
|
@ -1540,7 +1540,10 @@ decode_context(#'Content'{
|
||||
data = InvoiceContext
|
||||
}) ->
|
||||
% @TODO deal with non json contexts
|
||||
jsx:decode(InvoiceContext, [return_maps]).
|
||||
jsx:decode(InvoiceContext, [return_maps]);
|
||||
|
||||
decode_context(undefined) ->
|
||||
undefined.
|
||||
|
||||
decode_party(#domain_Party{
|
||||
id = PartyID,
|
||||
@ -2028,7 +2031,10 @@ decode_geo_location_info(#geo_ip_LocationInfo{
|
||||
#{
|
||||
<<"cityGeoID">> => CityID,
|
||||
<<"countryGeoID">> => CountryID
|
||||
}.
|
||||
};
|
||||
|
||||
decode_geo_location_info(undefined) ->
|
||||
undefined.
|
||||
|
||||
decode_location_name(GeoID, Name) ->
|
||||
#{
|
||||
|
Loading…
Reference in New Issue
Block a user