use atom key for fields
This commit is contained in:
parent
05c935c396
commit
d0f07e55d2
@ -242,7 +242,12 @@ def set_keys(info, keys) do
|
|||||||
end
|
end
|
||||||
|
|
||||||
def remote_user_creation(info, params) do
|
def remote_user_creation(info, params) do
|
||||||
params = Map.put(params, "fields", Enum.map(params["fields"], &truncate_field/1))
|
params =
|
||||||
|
if Map.has_key?(params, :fields) do
|
||||||
|
Map.put(params, :fields, Enum.map(params[:fields], &truncate_field/1))
|
||||||
|
else
|
||||||
|
params
|
||||||
|
end
|
||||||
|
|
||||||
info
|
info
|
||||||
|> cast(params, [
|
|> cast(params, [
|
||||||
|
Loading…
Reference in New Issue
Block a user