Browse Source

fix(go): set is_gw when converting api node to server node;

Vishal Dalwadi 3 months ago
parent
commit
eb0f4838c2
1 changed files with 1 additions and 3 deletions
  1. 1 3
      models/api_node.go

+ 1 - 3
models/api_node.go

@@ -132,9 +132,7 @@ func (a *ApiNode) ConvertToServerNode(currentNode *Node) *Node {
 		convertedNode.AdditionalRagIps = append(convertedNode.AdditionalRagIps, ragIp)
 	}
 	convertedNode.Tags = a.Tags
-	if a.IsRelay && a.IsIngressGateway {
-		currentNode.IsGw = true
-	}
+	convertedNode.IsGw = currentNode.IsGw
 	return &convertedNode
 }