From 8fa0fe76642cddf764ab1a814574fd1e4999f646 Mon Sep 17 00:00:00 2001 From: Joshua Cold Date: Sat, 11 Jan 2025 12:48:11 -0700 Subject: [PATCH] fix(backend): remove currentRooms check for backend health This check currently has issues when the database table is empty (i.e no users) --- backend/api/health.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/backend/api/health.go b/backend/api/health.go index 731b4a8f..ba02ec2f 100644 --- a/backend/api/health.go +++ b/backend/api/health.go @@ -84,11 +84,13 @@ func checkDatabase() ComponentStatus { return status } - rooms := store.currentRooms() - if rooms == nil { - status.Status = "down" - status.Error = "failed to query rooms" - } + // TODO need to replace this with some kind of check that just checks that the store + // DB table is ready, so that this works when the database has no users + // rooms := store.currentRooms() + // if rooms == nil { + // status.Status = "down" + // status.Error = "failed to query rooms" + // } return status }