@@ -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' ]
74
+ expand : [ 'owner' , 'items' , 'clients' , 'proxy_hosts.access_list.clients' ]
75
75
} , true /* <- skip masking */ ) ;
76
76
} )
77
77
. then ( ( row ) => {
@@ -81,7 +81,7 @@ const internalAccessList = {
81
81
return internalAccessList . build ( row )
82
82
. then ( ( ) => {
83
83
if ( row . proxy_host_count ) {
84
- return internalNginx . reload ( ) ;
84
+ return internalNginx . bulkGenerateConfigs ( 'proxy_host' , row . proxy_hosts ) ;
85
85
}
86
86
} )
87
87
. then ( ( ) => {
@@ -216,14 +216,14 @@ const internalAccessList = {
216
216
// re-fetch with expansions
217
217
return internalAccessList . get ( access , {
218
218
id : data . id ,
219
- expand : [ 'owner' , 'items' , 'clients' ]
219
+ expand : [ 'owner' , 'items' , 'clients' , 'proxy_hosts.access_list.clients' ]
220
220
} , true /* <- skip masking */ ) ;
221
221
} )
222
222
. then ( ( row ) => {
223
223
return internalAccessList . build ( row )
224
224
. then ( ( ) => {
225
225
if ( row . proxy_host_count ) {
226
- return internalNginx . reload ( ) ;
226
+ return internalNginx . bulkGenerateConfigs ( 'proxy_host' , row . proxy_hosts ) ;
227
227
}
228
228
} )
229
229
. then ( ( ) => {
@@ -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]' )
257
+ . allowEager ( '[owner,items,clients,proxy_hosts,proxy_hosts.access_list.clients ]' )
258
258
. omit ( [ 'access_list.is_deleted' ] )
259
259
. first ( ) ;
260
260
0 commit comments