Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jul 16, 2024
1 parent 855ee13 commit 72d5831
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/aggregate.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1774,17 +1774,4 @@ defmodule AshSql.Aggregate do
aggregate.field
end
end


if field do
related = Ash.Resource.Info.related(resource, relationship_path)
{field_type, constraints} = get_type(related, field)
Ash.Query.Aggregate.kind_to_type(kind, field_type, constraints)
else
Ash.Query.Aggregate.kind_to_type(kind, nil, nil)
end

%{type: type, constraints: constraints} ->
{type, constraints}
end
end

0 comments on commit 72d5831

Please sign in to comment.