fix: Set tenant correctly when reading many_to_many relationship. (#928)

This commit is contained in:
Jechol Lee 2024-03-15 09:30:10 +09:00 committed by GitHub
parent d62faaa0a5
commit 096542f352
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -387,7 +387,8 @@ defmodule Ash.Actions.Read.Relationships do
case Ash.Actions.Read.unpaginated_read(join_query, nil,
authorize?: related_query.context[:private][:authorize?],
actor: related_query.context[:private][:actor],
tracer: related_query.context[:private][:tracer]
tracer: related_query.context[:private][:tracer],
tenant: related_query.tenant
) do
{:ok, join_records} ->
{join_id_mapping, destination_ids} =