fix: set source_attribute from join_relationship in many_to_many (#932)

This commit is contained in:
Dmitry Maganov 2024-03-19 14:11:15 +02:00 committed by GitHub
parent f15427e03d
commit cc440d9fa0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -56,6 +56,7 @@ defmodule Ash.Resource.Transformers.CreateJoinRelationship do
%{
relationship
| through: join_relationship.destination,
source_attribute: join_relationship.source_attribute,
source_attribute_on_join_resource: join_relationship.destination_attribute
}