prevent publish to server node

This commit is contained in:
Matthew R. Kasun 2022-02-04 13:26:09 -05:00
parent 02b7025b28
commit 96caccc43e

View file

@ -608,6 +608,10 @@ func deleteNode(w http.ResponseWriter, r *http.Request) {
}
func runUpdates(node *models.Node, nodeUpdate bool) error {
//don't publish to server node
if node.IsServer == "yes" {
return
}
if nodeUpdate {
if err := mq.NodeUpdate(node); err != nil {
logger.Log(1, "error publishing node update", err.Error())