From 508087e111b1ea257466ac064700e7b198f87d53 Mon Sep 17 00:00:00 2001 From: Malte Rohde Date: Wed, 20 Dec 2023 13:39:19 +0100 Subject: [PATCH] Update lib/bitcrowd_ecto/changeset.ex Co-authored-by: Alfonso Manuel --- lib/bitcrowd_ecto/changeset.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bitcrowd_ecto/changeset.ex b/lib/bitcrowd_ecto/changeset.ex index 0a8e2c4..1c0357e 100644 --- a/lib/bitcrowd_ecto/changeset.ex +++ b/lib/bitcrowd_ecto/changeset.ex @@ -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