fix: ensure ci_strings casted after constraints

This commit is contained in:
Zach Daniel 2021-06-25 13:41:05 -04:00
parent 01abe80a04
commit 69967099e3

View file

@ -65,12 +65,7 @@ defmodule Ash.Type.CiString do
{:ok, nil}
{:ok, value} ->
{:ok,
%Ash.CiString{
string: value,
casted?: is_nil(constraints[:case]),
case: constraints[:casing]
}}
{:ok, Ash.CiString.new(value, constraints[:casing])}
other ->
other