File tree 1 file changed +11
-8
lines changed
1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -1041,12 +1041,16 @@ defmodule AshPostgres.DataLayer do
1041
1041
Map . get ( relationship , :manual ) ->
1042
1042
{ module , opts } = relationship . manual
1043
1043
1044
- module . ash_postgres_subquery (
1045
- opts ,
1046
- 0 ,
1047
- 0 ,
1048
- base_query
1049
- )
1044
+ case module . ash_postgres_subquery ( opts , 0 , 0 , base_query ) do
1045
+ { :ok , subquery } ->
1046
+ subquery
1047
+
1048
+ { :error , error } ->
1049
+ { :error , error }
1050
+
1051
+ subquery ->
1052
+ subquery
1053
+ end
1050
1054
1051
1055
Map . get ( relationship , :no_attributes? ) ->
1052
1056
base_query
@@ -1234,8 +1238,7 @@ defmodule AshPostgres.DataLayer do
1234
1238
subquery (
1235
1239
from (
1236
1240
destination in query ,
1237
- join:
1238
- through in ^ through_query ,
1241
+ join: through in ^ through_query ,
1239
1242
as: ^ through_binding ,
1240
1243
on:
1241
1244
field ( through , ^ destination_attribute_on_join_resource ) ==
You can’t perform that action at this time.
0 commit comments