fixed node GenerateRevisionHash, return "" on node with no sensors

This commit is contained in:
AndReicscs
2026-06-21 14:36:37 +00:00
parent 885c1b89ac
commit 3ea3345eac
+3
View File
@@ -242,6 +242,9 @@ func (s *Service) evaluateNodeSyncState(nodeID string) {
}
func GenerateRevisionHash(sensors []models.NodeSensor, catSvc *catalog.Service, currentHubVersion string) string {
if len(sensors) == 0 {
return ""
}
type sensorConfig struct {
ID string
Version string