Skip to content

Commit

Permalink
add check for no records
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygd committed Jul 24, 2024
1 parent 0355d9c commit b89bec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hub/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b89bec3

Please sign in to comment.