mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 17:48:25 +08:00
update lastcheckin in addition to lastmodified on node update
This commit is contained in:
parent
d2b95c338c
commit
104a715ec5
1 changed files with 1 additions and 0 deletions
|
@ -77,6 +77,7 @@ func UpdateNode(client mqtt.Client, msg mqtt.Message) {
|
|||
logger.Log(1, "error unmarshaling payload ", err.Error())
|
||||
return
|
||||
}
|
||||
newNode.SetLastCheckIn()
|
||||
if err := logic.UpdateNode(¤tNode, &newNode); err != nil {
|
||||
logger.Log(1, "error saving node", err.Error())
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue