From 104a715ec5eeb05b81df77755352e8a7a477c32d Mon Sep 17 00:00:00 2001 From: "Matthew R. Kasun" Date: Thu, 18 Aug 2022 08:14:37 -0400 Subject: [PATCH] update lastcheckin in addition to lastmodified on node update --- mq/handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/mq/handlers.go b/mq/handlers.go index d4022d97..22bddfce 100644 --- a/mq/handlers.go +++ b/mq/handlers.go @@ -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