From b89bec31b5490e076ce6ca2c6fd34af45d04ce6a Mon Sep 17 00:00:00 2001 From: Henry Dollman Date: Tue, 23 Jul 2024 20:09:09 -0400 Subject: [PATCH] add check for no records --- hub/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hub/main.go b/hub/main.go index f187b490..637be356 100644 --- a/hub/main.go +++ b/hub/main.go @@ -217,8 +217,8 @@ func updateSystems() { 0, // offset ) // log.Println("records", len(records)) - if err != nil { - app.Logger().Error("Failed to query systems: ", "err", err.Error()) + if err != nil || len(records) == 0 { + // app.Logger().Error("Failed to query systems") return } fiftyFiveSecondsAgo := time.Now().UTC().Add(-55 * time.Second)