Browse Source

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
Aceix 1 year ago
parent
commit
fde74e0627
1 changed files with 2 additions and 0 deletions
  1. 2 0
      controllers/server.go

+ 2 - 0
controllers/server.go

@@ -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")