Skip to content

Commit

Permalink
fix: Resource responder was using the incorrect function signature fo…
Browse files Browse the repository at this point in the history
…r Fields.apply_values/5
  • Loading branch information
staylorwr committed Oct 6, 2021
1 parent 9e8b29d commit 1780a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ex_teal/api/resource_responder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ defmodule ExTeal.Api.ResourceResponder do
fields =
:edit
|> Fields.fields_for(resource)
|> Fields.apply_values(model, resource, :edit, nil)
|> Fields.apply_values(model, resource, conn, :edit, nil)

{:ok, body} = Jason.encode(%{fields: fields})
Serializer.as_json(conn, body, 200)
Expand Down

0 comments on commit 1780a67

Please sign in to comment.