优化节点阈值设置

This commit is contained in:
GoEdgeLab
2023-11-03 11:20:47 +08:00
parent 37caaf9cbc
commit 54e22a907a
3 changed files with 16 additions and 93 deletions

View File

@@ -2066,7 +2066,7 @@ func (this *NodeService) FindEnabledNodeConfigInfo(ctx context.Context, req *pb.
}
// thresholds
countThresholds, err := models.SharedNodeThresholdDAO.CountAllEnabledThresholds(tx, nodeconfigs.NodeRoleNode, 0, req.NodeId)
countThresholds, err := models.SharedNodeThresholdDAO.CountAllEnabledThresholds(tx, nodeconfigs.NodeRoleNode, int64(node.ClusterId), req.NodeId)
if err != nil {
return nil, err
}