fix: return proper value from short-circuit filter hydration

This commit is contained in:
Zach Daniel 2024-06-07 10:43:49 -04:00
parent 9c32eab87e
commit 7f1849ca5c

View file

@ -3539,7 +3539,7 @@ defmodule Ash.Filter do
case do_hydrate_refs(left, context) do
{:ok, true} ->
if expr.op == :or do
true
{:ok, true}
else
do_hydrate_refs(right, context)
end
@ -3555,7 +3555,7 @@ defmodule Ash.Filter do
case do_hydrate_refs(right, context) do
{:ok, true} ->
if expr.op == :or do
true
{:ok, true}
else
{:ok, left}
end