update lastcheckin in addition to lastmodified on node update

This commit is contained in:
Matthew R. Kasun 2022-08-18 08:14:37 -04:00
parent d2b95c338c
commit 104a715ec5

View file

@ -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(&currentNode, &newNode); err != nil {
logger.Log(1, "error saving node", err.Error())
return