Parcourir la source

change: minor change to health check api endpoint

Torkel Ödegaard il y a 8 ans
Parent
commit
19a04b7e4a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      pkg/api/http_server.go

+ 1 - 1
pkg/api/http_server.go

@@ -175,7 +175,7 @@ func (hs *HttpServer) healthHandler(ctx *macaron.Context) {
 	data.Set("commit", setting.BuildCommit)
 
 	if err := bus.Dispatch(&models.GetDBHealthQuery{}); err != nil {
-		data.Set("db_status", "failing")
+		data.Set("database", "failing")
 	}
 
 	ctx.Resp.Header().Set("Content-Type", "application/json; charset=UTF-8")