LicenseStore migration to return plain errors (#14837)

Automatic Merge
Этот коммит содержится в:
Rodrigo Villablanca
2020-06-23 23:56:35 -04:00
коммит произвёл GitHub
родитель 668a2aa856
Коммит 64d12c08e9
7 изменённых файлов: 33 добавлений и 42 удалений

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

@@ -3518,7 +3518,7 @@ func (s *TimerLayerJobStore) UpdateStatusOptimistically(id string, currentStatus
return resultVar0, resultVar1
}
func (s *TimerLayerLicenseStore) Get(id string) (*model.LicenseRecord, *model.AppError) {
func (s *TimerLayerLicenseStore) Get(id string) (*model.LicenseRecord, error) {
start := timemodule.Now()
resultVar0, resultVar1 := s.LicenseStore.Get(id)
@@ -3534,7 +3534,7 @@ func (s *TimerLayerLicenseStore) Get(id string) (*model.LicenseRecord, *model.Ap
return resultVar0, resultVar1
}
func (s *TimerLayerLicenseStore) Save(license *model.LicenseRecord) (*model.LicenseRecord, *model.AppError) {
func (s *TimerLayerLicenseStore) Save(license *model.LicenseRecord) (*model.LicenseRecord, error) {
start := timemodule.Now()
resultVar0, resultVar1 := s.LicenseStore.Save(license)