Browse Source

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

Vishal Dalwadi 3 tháng trước cách đây
mục cha
commit
7d4238daac
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      models/api_node.go

+ 3 - 0
models/api_node.go

@@ -132,6 +132,9 @@ 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
+	}
 	return &convertedNode
 }