fix various copy/paste/typos (#22823)

This commit is contained in:
Jesse Hallam
2023-04-05 10:18:50 -03:00
committed by GitHub
parent 3d7a54555f
commit 28ad1c80cd
3 changed files with 6 additions and 2 deletions

View File

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

View File

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

View File

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