Replace MongoClient with MinioClient (was typo)

Use bucket_name instead of bucket in handleV1Health
This commit is contained in:
Victor Lacasse-Beaudoin 2023-04-21 17:11:06 -04:00
parent 28cc97dcee
commit a3287768ad
2 changed files with 7 additions and 8 deletions

View file

@ -148,13 +148,12 @@ func handleV1Health(c echo.Context) error {
message := make(map[string]interface{}, len(documents_buckets))
for _, bucket := range documents_buckets {
exists, err := client.BucketExists(bucket)
for _, bucket_name := range documents_buckets {
exists, err := client.BucketExists(bucket_name)
if err != nil {
return c.JSON(http.StatusInternalServerError, err)
}
message[bucket] = exists
message[bucket_name] = exists
}
return c.JSON(http.StatusOK, message)