From 75d975ea3ad98bda27312cf18dba375537ff5baa Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Fri, 1 Mar 2024 15:44:32 -0500 Subject: [PATCH] fix: properly match return type of `Type.new` in expr expansion --- lib/ash/actions/read/read.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ash/actions/read/read.ex b/lib/ash/actions/read/read.ex index 96a0b668..3338aea7 100644 --- a/lib/ash/actions/read/read.ex +++ b/lib/ash/actions/read/read.ex @@ -1067,7 +1067,8 @@ defmodule Ash.Actions.Read do expr expr -> - Ash.Query.Function.Type.new([expr, calc.type, calc.constraints]) + {:ok, expr} = Ash.Query.Function.Type.new([expr, calc.type, calc.constraints]) + expr end {:ok, expr} =