From 079eb2e08d2428ae945bd50ed17a9e5dae96e6b2 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Tue, 1 Feb 2022 17:44:01 -0500 Subject: [PATCH] fix: don't call `ecto_type` twice when resolving types --- lib/types/types.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/types/types.ex b/lib/types/types.ex index 8d1ff29..131f8e8 100644 --- a/lib/types/types.ex +++ b/lib/types/types.ex @@ -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 =