mirror of
https://github.com/ash-project/ash_phoenix.git
synced 2024-09-19 23:02:48 +12:00
fix: call get_function/3
This commit is contained in:
parent
00fa744d97
commit
47fba77237
1 changed files with 2 additions and 2 deletions
|
@ -236,7 +236,7 @@ defmodule AshPhoenix.FilterForm do
|
|||
if Ash.Filter.get_operator(operator) do
|
||||
{:ok, %Ash.Query.Call{name: operator, args: [ref, value], operator?: true}}
|
||||
else
|
||||
if Ash.Filter.get_function(operator, resource) do
|
||||
if Ash.Filter.get_function(operator, resource, true) do
|
||||
{:ok, %Ash.Query.Call{name: operator, args: [ref, value]}}
|
||||
else
|
||||
{:error, {:operator, "No such function or operator #{operator}", []}}
|
||||
|
@ -635,7 +635,7 @@ defmodule AshPhoenix.FilterForm do
|
|||
[]
|
||||
end
|
||||
|
||||
if Ash.Filter.get_function(predicate.operator, resource) do
|
||||
if Ash.Filter.get_function(predicate.operator, resource, true) do
|
||||
errors
|
||||
else
|
||||
if Ash.Filter.get_operator(predicate.operator) do
|
||||
|
|
Loading…
Reference in a new issue