associate enrollment key tags to node

This commit is contained in:
abhishek9686
2024-09-22 14:06:17 +04:00
parent 04b8737a02
commit 7dffa98884
3 changed files with 15 additions and 11 deletions

View File

@@ -420,6 +420,9 @@ func SetNodeDefaults(node *models.Node, resetConnected bool) {
node.SetDefaultConnected()
}
node.SetExpirationDateTime()
if node.Tags == nil {
node.Tags = make(map[models.TagID]struct{})
}
}
// GetRecordKey - get record key