fix: properly match return type of Type.new in expr expansion

This commit is contained in:
Zach Daniel 2024-03-01 15:44:32 -05:00
parent 91742c20c2
commit 75d975ea3a

View file

@ -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} =