Преглед изворни кода

send host update to devices on auto update

abhishek9686 пре 4 месеци
родитељ
комит
8dd673e8b5
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      controllers/server.go

+ 4 - 0
controllers/server.go

@@ -289,6 +289,10 @@ func reInit(curr, new models.ServerSettings, force bool) {
 			for _, host := range hosts {
 				host.AutoUpdate = new.NetclientAutoUpdate
 				logic.UpsertHost(&host)
+				mq.HostUpdate(&models.HostUpdate{
+					Action: models.UpdateHost,
+					Host:   host,
+				})
 			}
 		}
 	}