From 622efd8d637a8dd3301adb8b265c5223fbdc5e81 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Sat, 16 Sep 2023 17:19:32 -0400 Subject: [PATCH] Retirer field Data.DBStatus de apiresponse.HealthGET --- apihandler/apihandler.go | 13 ------------- apiresponse/apiresponse.go | 1 - 2 files changed, 14 deletions(-) diff --git a/apihandler/apihandler.go b/apihandler/apihandler.go index ae97e0f..e051ce1 100644 --- a/apihandler/apihandler.go +++ b/apihandler/apihandler.go @@ -5,7 +5,6 @@ import ( "fmt" "net/http" - "git.agecem.com/agecem/bottin-ag/apierror" "git.agecem.com/agecem/bottin-ag/apiresponse" bottindata "git.agecem.com/agecem/bottin/v5/data" "github.com/labstack/echo/v4" @@ -42,18 +41,6 @@ func (a *APIHandler) HealthGET(c echo.Context) error { r.Data.BottinStatus = bottinStatus } - // TODO - r.Data.DBStatus = "not implemented" - - if r.Data.BottinStatus == "not implemented" || r.Data.DBStatus == "not implemented" { - var err apierror.ErrBottinOrDBNotImplemented - r.Error = err.Error() - r.StatusCode = http.StatusInternalServerError - r.Message = "not ok" - - return c.JSON(r.StatusCode, r) - } - return c.JSON(r.StatusCode, r) } diff --git a/apiresponse/apiresponse.go b/apiresponse/apiresponse.go index cdeb9c0..d034916 100644 --- a/apiresponse/apiresponse.go +++ b/apiresponse/apiresponse.go @@ -13,7 +13,6 @@ type HealthGET struct { Response Data struct { BottinStatus string - DBStatus string } }