fix(NET-581): add tenant tier to status api (#2558)

* fix(NET-581): add tenant tier to status api

* fix(NET-581): make tenant tier boolean in status api

* fix(NET-581): rename EE to Pro
This commit is contained in:
Aceix 2023-09-11 04:09:33 +00:00 committed by GitHub
parent 073adacddb
commit fde74e0627
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,6 +83,7 @@ func getStatus(w http.ResponseWriter, r *http.Request) {
DB bool `json:"db_connected"`
Broker bool `json:"broker_connected"`
LicenseError string `json:"license_error"`
IsPro bool `json:"is_pro"`
}
licenseErr := ""
@ -94,6 +95,7 @@ func getStatus(w http.ResponseWriter, r *http.Request) {
DB: database.IsConnected(),
Broker: mq.IsConnected(),
LicenseError: licenseErr,
IsPro: servercfg.IsPro,
}
w.Header().Set("Content-Type", "application/json")