Skip to content

Commit

Permalink
Fixes Issue: apache#7519
Browse files Browse the repository at this point in the history
  • Loading branch information
jagan-parthiban committed May 28, 2023
1 parent 4eb7a2a commit 95f0c36
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,8 @@ func (dss *TODSSDeliveryService) Read(h http.Header, useIMS bool) ([]interface{}
} else {
where = "WHERE "
}
where += "ds.id in (SELECT deliveryService FROM deliveryservice_server where server = :server)"

where += "ds.id in (SELECT deliveryService FROM deliveryservice_server WHERE server = :server) OR ds.id in (SELECT id FROM deliveryservice WHERE topology = ( SELECT topology FROM topology_cachegroup WHERE cachegroup = ( SELECT name FROM cachegroup WHERE id = ( SELECT cachegroup FROM server WHERE id = :server ))))"

tenantIDs, err := tenant.GetUserTenantIDListTx(tx, user.TenantID)
if err != nil {
Expand Down

0 comments on commit 95f0c36

Please sign in to comment.