Skip to content

Commit

Permalink
Update lib/bitcrowd_ecto/changeset.ex
Browse files Browse the repository at this point in the history
Co-authored-by: Alfonso Manuel <[email protected]>
  • Loading branch information
maltoe and ammancilla authored Dec 20, 2023
1 parent c010de9 commit 508087e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bitcrowd_ecto/changeset.ex
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,8 @@ defmodule BitcrowdEcto.Changeset do
%{scalars: scalars, embeds: embeds} = grouped_fields(schema)

struct_or_changeset
|> cast_scalars(params, grouped.scalars, required)
|> cast_embeds(grouped.embeds, required)
|> cast_scalars(params, scalars, required)
|> cast_embeds(embeds, required)
end

defp required_fields(schema, opts) do
Expand Down

0 comments on commit 508087e

Please sign in to comment.