fix: typo in cast_in_query?

This commit is contained in:
Zach Daniel 2022-12-29 01:52:12 -05:00
parent a8fe63f0a0
commit 11db0aab65

View file

@ -650,7 +650,7 @@ defmodule Ash.Type do
def cast_in_query?(type, constraints \\ []) do
if ash_type?(type) do
if function_exported?(type, :cast_in_query, 0) do
if function_exported?(type, :cast_in_query?, 0) do
type.cast_in_query?()
else
type.cast_in_query?(constraints)