mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
fix: build aggregate paths properly
This commit is contained in:
parent
5d0719cc71
commit
65113a075f
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ defmodule Ash.Query.Aggregate do
|
|||
path_for_checking =
|
||||
relationship_path
|
||||
|> tl()
|
||||
|> Enum.reduce({[], aggregate_resource}, fn rel, {path, resource} ->
|
||||
|> Enum.reduce({[], relationship.destination}, fn rel, {path, resource} ->
|
||||
relationship = Ash.Resource.Info.relationship(resource, rel)
|
||||
{[relationship | path], relationship.destination}
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue