From 3519a85cee3016360bce6d0871751880f0cfba86 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Sat, 13 Apr 2024 20:47:01 -0400 Subject: [PATCH] fix: ensure `to_tenant` is copied to aggregate query --- lib/ash/actions/aggregate.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ash/actions/aggregate.ex b/lib/ash/actions/aggregate.ex index 7d34594b0..63274af9a 100644 --- a/lib/ash/actions/aggregate.ex +++ b/lib/ash/actions/aggregate.ex @@ -80,7 +80,8 @@ defmodule Ash.Actions.Aggregate do limit: query.limit, offset: query.offset, domain: query.domain, - tenant: query.tenant + tenant: query.tenant, + to_tenant: query.to_tenant }), {:ok, result} <- Ash.DataLayer.run_aggregate_query(