fix: don't call ecto_type twice when resolving types

This commit is contained in:
Zach Daniel 2022-02-01 17:44:01 -05:00
parent 00d937cfa8
commit 079eb2e08d

View file

@ -110,7 +110,7 @@ defmodule AshPostgres.Types do
)
when vague_type in [:any, :same] do
if Ash.Type.ash_type?(type) do
type = type |> Ash.Type.ecto_type() |> parameterized_type(constraints) |> array_to_in()
type = type |> parameterized_type(constraints) |> array_to_in()
{type, ref}
else
type =