mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-02 18:00:24 +08:00
优化代码
This commit is contained in:
@@ -51,10 +51,10 @@ func (this *HTTPCachePolicyDAO) FindEnabledHTTPCachePolicyWithServerId(ctx conte
|
||||
if server == nil {
|
||||
return nil, nil
|
||||
}
|
||||
if server.Cluster == nil {
|
||||
if server.NodeCluster == nil {
|
||||
return nil, nil
|
||||
}
|
||||
clusterId := server.Cluster.Id
|
||||
clusterId := server.NodeCluster.Id
|
||||
cluster, err := SharedNodeClusterDAO.FindEnabledNodeCluster(ctx, clusterId)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user