Browse Source

change: minor change to health check api endpoint

Torkel Ödegaard 8 năm trước cách đây
mục cha
commit
19a04b7e4a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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")