mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
fix: include path in unique path for anonymous aggregates
This commit is contained in:
parent
105b4652ea
commit
030f240273
1 changed files with 4 additions and 3 deletions
|
@ -2738,12 +2738,14 @@ defmodule Ash.Filter do
|
|||
opts
|
||||
end
|
||||
|
||||
opts = Keyword.put(opts, :path, path)
|
||||
|
||||
with {:ok, agg} <-
|
||||
Ash.Query.Aggregate.new(
|
||||
resource,
|
||||
agg_name(field, opts),
|
||||
agg_name(kind, opts),
|
||||
kind,
|
||||
Keyword.put(opts, :path, path)
|
||||
opts
|
||||
) do
|
||||
{:ok,
|
||||
%Ref{
|
||||
|
@ -2844,7 +2846,6 @@ defmodule Ash.Filter do
|
|||
opts_string =
|
||||
opts
|
||||
|> Keyword.take([
|
||||
:path,
|
||||
:query,
|
||||
:field,
|
||||
:default,
|
||||
|
|
Loading…
Reference in a new issue