mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 05:23:03 +12:00
fix: properly return constraints in aggregate get_type
This commit is contained in:
parent
1a2dc2a14c
commit
bb9b9aea37
1 changed files with 2 additions and 1 deletions
|
@ -235,7 +235,8 @@ defmodule Ash.Query.Aggregate do
|
|||
|
||||
defp validate_uniq(_, _), do: :ok
|
||||
|
||||
defp get_type(:custom, type, _, _attribute_constraints, _provided_constraints), do: {:ok, type}
|
||||
defp get_type(:custom, type, _, _attribute_constraints, provided_constraints),
|
||||
do: {:ok, type, provided_constraints || []}
|
||||
|
||||
defp get_type(kind, _, attribute_type, attribute_constraints, provided_constraints) do
|
||||
kind_to_type(kind, attribute_type, attribute_constraints || provided_constraints)
|
||||
|
|
Loading…
Reference in a new issue