Browse Source

fix host ID return for API

0xdcarns 2 years ago
parent
commit
f1f164cf35
1 changed files with 1 additions and 1 deletions
  1. 1 1
      models/api_node.go

+ 1 - 1
models/api_node.go

@@ -113,7 +113,7 @@ func (a *ApiNode) ConvertToServerNode(currentNode *Node) *Node {
 func (nm *Node) ConvertToAPINode() *ApiNode {
 	apiNode := ApiNode{}
 	apiNode.ID = nm.ID.String()
-	apiNode.HostID = nm.ID.String()
+	apiNode.HostID = nm.HostID.String()
 	apiNode.Address = nm.Address.String()
 	if isEmptyAddr(apiNode.Address) {
 		apiNode.Address = ""