From c5d0d0dff3729f7e70dd4c3fc450e84e1961a712 Mon Sep 17 00:00:00 2001 From: Dmitry Maganov Date: Thu, 31 Oct 2024 21:05:34 +0200 Subject: [PATCH] fix: add missing case clause for `Changeset.atomic_update` type cast --- lib/ash/changeset/changeset.ex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ash/changeset/changeset.ex b/lib/ash/changeset/changeset.ex index 499bd4f5c..9396d4444 100644 --- a/lib/ash/changeset/changeset.ex +++ b/lib/ash/changeset/changeset.ex @@ -1722,6 +1722,9 @@ defmodule Ash.Changeset do |> store_casted_attribute(attribute.name, value, true) end + {:error, error} -> + add_invalid_errors(value, :attribute, changeset, attribute, error) + {:not_atomic, message} -> add_error( changeset,