mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 13:33:50 +12:00
fix: don't use hard-coded join assoc name (#118)
This commit is contained in:
parent
961137c1d9
commit
63d007131f
1 changed files with 1 additions and 3 deletions
|
@ -494,9 +494,7 @@ defmodule AshPostgres.Join do
|
|||
Ash.Resource.Info.relationship(relationship.source, relationship.join_relationship)
|
||||
|
||||
join_path =
|
||||
Enum.reverse([
|
||||
String.to_existing_atom(to_string(relationship.name) <> "_join_assoc") | path
|
||||
])
|
||||
Enum.reverse([join_relationship.name | path])
|
||||
|
||||
full_path = path ++ [relationship.name]
|
||||
|
||||
|
|
Loading…
Reference in a new issue