@@ -71,7 +71,7 @@ const internalAccessList = {
71
71
// re-fetch with expansions
72
72
return internalAccessList . get ( access , {
73
73
id : data . id ,
74
- expand : [ 'owner' , 'items' , 'clients' , 'proxy_hosts.access_list.clients' , 'proxy_hosts.access_list. items']
74
+ expand : [ 'owner' , 'items' , 'clients' , 'proxy_hosts.access_list.[ clients, items] ' ]
75
75
} , true /* <- skip masking */ ) ;
76
76
} )
77
77
. then ( ( row ) => {
@@ -216,7 +216,7 @@ const internalAccessList = {
216
216
// re-fetch with expansions
217
217
return internalAccessList . get ( access , {
218
218
id : data . id ,
219
- expand : [ 'owner' , 'items' , 'clients' , 'proxy_hosts.access_list.clients' , 'proxy_hosts.access_list. items']
219
+ expand : [ 'owner' , 'items' , 'clients' , 'proxy_hosts.access_list.[ clients, items] ' ]
220
220
} , true /* <- skip masking */ ) ;
221
221
} )
222
222
. then ( ( row ) => {
@@ -254,7 +254,7 @@ const internalAccessList = {
254
254
. joinRaw ( 'LEFT JOIN `proxy_host` ON `proxy_host`.`access_list_id` = `access_list`.`id` AND `proxy_host`.`is_deleted` = 0' )
255
255
. where ( 'access_list.is_deleted' , 0 )
256
256
. andWhere ( 'access_list.id' , data . id )
257
- . allowEager ( '[owner,items,clients,proxy_hosts,proxy_hosts. access_list.clients,proxy_hosts.access_list. items]' )
257
+ . allowEager ( '[owner,items,clients,proxy_hosts.[*, access_list.[ clients,items]] ]' )
258
258
. omit ( [ 'access_list.is_deleted' ] )
259
259
. first ( ) ;
260
260
0 commit comments