Browse Source

fix: add status to updated node response during update (#3363)

Aceix 5 tháng trước cách đây
mục cha
commit
372c797e60
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      controllers/node.go

+ 2 - 0
controllers/node.go

@@ -678,6 +678,8 @@ func updateNode(w http.ResponseWriter, r *http.Request) {
 		logic.UpdateRelayed(&currentNode, newNode)
 	}
 
+	logic.GetNodeStatus(newNode, false)
+
 	apiNode := newNode.ConvertToAPINode()
 	logger.Log(
 		1,