From 28ad1c80cddc2142e670a4ee7d99304667bbbfd1 Mon Sep 17 00:00:00 2001 From: Jesse Hallam Date: Wed, 5 Apr 2023 10:18:50 -0300 Subject: [PATCH] fix various copy/paste/typos (#22823) --- model/license.go | 2 +- server/channels/api4/license_test.go | 2 +- server/i18n/en.json | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/model/license.go b/model/license.go index 7fa211e4e8..53742b9345 100644 --- a/model/license.go +++ b/model/license.go @@ -442,7 +442,7 @@ func (lr *LicenseRecord) IsValid() *AppError { } if lr.Bytes == "" || len(lr.Bytes) > 10000 { - return NewAppError("LicenseRecord.IsValid", "model.license_record.is_valid.create_at.app_error", nil, "", http.StatusBadRequest) + return NewAppError("LicenseRecord.IsValid", "model.license_record.is_valid.bytes.app_error", nil, "", http.StatusBadRequest) } return nil diff --git a/server/channels/api4/license_test.go b/server/channels/api4/license_test.go index 7762e3fc0f..08a9e57305 100644 --- a/server/channels/api4/license_test.go +++ b/server/channels/api4/license_test.go @@ -120,7 +120,7 @@ func TestUploadLicenseFile(t *testing.T) { require.Equal(t, http.StatusBadRequest, resp.StatusCode) }) - t.Run("try to get gone through trial, with TE build", func(t *testing.T) { + t.Run("try to get one through trial, with TE build", func(t *testing.T) { th.App.UpdateConfig(func(cfg *model.Config) { *cfg.ExperimentalSettings.RestrictSystemAdmin = false }) th.App.Srv().Platform().SetLicenseManager(nil) diff --git a/server/i18n/en.json b/server/i18n/en.json index e73fa524c8..e91fbf2656 100644 --- a/server/i18n/en.json +++ b/server/i18n/en.json @@ -9231,6 +9231,10 @@ "id": "model.job.is_valid.type.app_error", "translation": "Invalid job type." }, + { + "id": "model.license_record.is_valid.bytes.app_error", + "translation": "Invalid value for bytes when uploading a license." + }, { "id": "model.license_record.is_valid.create_at.app_error", "translation": "Invalid value for create_at when uploading a license."