Skip to content

Commit

Permalink
fix: properly detect Ash.CustomExpression as an expr
Browse files Browse the repository at this point in the history
fixes #1572
  • Loading branch information
zachdaniel committed Nov 4, 2024
1 parent 791d34f commit 4c7dc1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ash/expr/expr.ex
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ defmodule Ash.Expr do
is_struct(value, Ash.Query.Exists) or
is_struct(value, Ash.Query.Parent) or
is_struct(value, Ash.Query.UpsertConflict) or
is_struct(value, Ash.CustomExpression) or
(is_struct(value) and is_map_key(value, :__predicate__?)) do
true
end
Expand Down Expand Up @@ -771,7 +772,6 @@ defmodule Ash.Expr do
expr
end


def do_expr(
{:&, _, _} = expr,
_
Expand Down
1 change: 1 addition & 0 deletions lib/ash/query/query.ex
Original file line number Diff line number Diff line change
Expand Up @@ -2674,6 +2674,7 @@ defmodule Ash.Query do

case filter do
{:ok, filter} ->

case Ash.Filter.hydrate_refs(
filter,
%{
Expand Down

0 comments on commit 4c7dc1a

Please sign in to comment.