Explorar o código

fixed setting default node postdown

0xdcarns %!s(int64=3) %!d(string=hai) anos
pai
achega
9ded75d741
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      logic/nodes.go

+ 4 - 0
logic/nodes.go

@@ -253,6 +253,10 @@ func SetNodeDefaults(node *models.Node) {
 		postup := parentNetwork.DefaultPostUp
 		node.PostUp = postup
 	}
+	if node.PostDown == "" {
+		postdown := parentNetwork.DefaultPostDown
+		node.PostDown = postdown
+	}
 	if node.IsStatic == "" {
 		node.IsStatic = "no"
 	}