mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 05:23:18 +12:00
chore: fix recursion error in to_many_path?
This commit is contained in:
parent
38d1beb0d8
commit
b5b1077032
2 changed files with 3 additions and 7 deletions
|
@ -791,7 +791,7 @@ defmodule AshPostgres.Aggregate do
|
|||
"""
|
||||
|
||||
rel ->
|
||||
to_many_path?(rel.destination, [rest])
|
||||
to_many_path?(rel.destination, rest)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1167,12 +1167,8 @@ defmodule AshPostgres.AggregateTest do
|
|||
test "a count can filter independently of the query" do
|
||||
Post
|
||||
|> Api.aggregate([
|
||||
Ash.Query.Aggregate.new!(Post, :count, :count,
|
||||
query: [filter: Ash.Expr.expr(comments.likes > 10)]
|
||||
),
|
||||
Ash.Query.Aggregate.new!(Post, :count2, :count,
|
||||
query: [filter: Ash.Expr.expr(comments.likes < 10)]
|
||||
)
|
||||
{:count, :count, query: [filter: Ash.Expr.expr(comments.likes > 10)]},
|
||||
{:count2, :count, query: [filter: Ash.Expr.expr(comments.likes < 10)]}
|
||||
])
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue