Retirer field Data.DBStatus de apiresponse.HealthGET
This commit is contained in:
parent
c583220fd6
commit
622efd8d63
2 changed files with 0 additions and 14 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ type HealthGET struct {
|
|||
Response
|
||||
Data struct {
|
||||
BottinStatus string
|
||||
DBStatus string
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue