Этот коммит содержится в:
Conor Macpherson
2022-12-30 15:04:30 -05:00
родитель b3b39e4f15
Коммит 84fe5514fc
3 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@@ -309,7 +309,7 @@ func requestTrueUpReview(c *Context, w http.ResponseWriter, r *http.Request) {
license := c.App.Channels().License()
if license == nil {
c.Err = model.NewAppError("requestTrueUpReview", "api.license.true_up_review.license.required", nil, "", http.StatusNotImplemented)
c.Err = model.NewAppError("requestTrueUpReview", "api.license.true_up_review.license_required", nil, "", http.StatusNotImplemented)
return
}

Просмотреть файл

@@ -20,6 +20,10 @@ import (
func (a *App) getTrueUpProfile() (*model.TrueUpReviewProfile, error) {
license := a.Channels().License()
if license == nil {
return nil, model.NewAppError("requestTrueUpReview", "api.license.true_up_review.license_required", nil, "Could not get the total active users count", http.StatusInternalServerError)
}
// Customer Info & Usage Analytics
activeUserCount, err := a.Srv().Store().Status().GetTotalActiveUsersCount()
if err != nil {

Просмотреть файл

@@ -2085,10 +2085,6 @@
"id": "api.license.true_up_review.get_status_error",
"translation": "Could not get true up status records"
},
{
"id": "api.license.true_up_review.license.required",
"translation": "A license is required to request a true up review."
},
{
"id": "api.license.true_up_review.license_required",
"translation": "True up review requires a license"