@@ -71,7 +71,7 @@ const internalAccessList = {
7171 // re-fetch with expansions
7272 return internalAccessList . get ( access , {
7373 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] ' ]
7575 } , true /* <- skip masking */ ) ;
7676 } )
7777 . then ( ( row ) => {
@@ -216,7 +216,7 @@ const internalAccessList = {
216216 // re-fetch with expansions
217217 return internalAccessList . get ( access , {
218218 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] ' ]
220220 } , true /* <- skip masking */ ) ;
221221 } )
222222 . then ( ( row ) => {
@@ -254,7 +254,7 @@ const internalAccessList = {
254254 . joinRaw ( 'LEFT JOIN `proxy_host` ON `proxy_host`.`access_list_id` = `access_list`.`id` AND `proxy_host`.`is_deleted` = 0' )
255255 . where ( 'access_list.is_deleted' , 0 )
256256 . 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]] ]' )
258258 . omit ( [ 'access_list.is_deleted' ] )
259259 . first ( ) ;
260260
0 commit comments