Skip to content

Commit 045060d

Browse files
committed
fix: handle new operator_overloads format in operator evaluation
fixes #2499
1 parent fe2c3f2 commit 045060d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/ash/query/operator/operator.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ defmodule Ash.Query.Operator do
8686
nil
8787

8888
_types ->
89+
mod =
90+
case mod do
91+
{_, mod} -> mod
92+
mod -> mod
93+
end
94+
8995
if function_exported?(mod, :evaluate_operator, 1) do
9096
case mod.evaluate_operator(op) do
9197
{:known, value} ->

0 commit comments

Comments
 (0)