SystemStore migration to return plain errors (#14835)
* SystemStore migration to return plain errors * Fix nilness * Fix translations * Fix merge * Fix layers * Fix merge errors * Lint: remove unnecessary use of sprint * Fix merge errors * Fix i18n Co-authored-by: Agniva De Sarker <agnivade@yahoo.co.in>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e8d431ee7c
Коммит
20e44399c7
@@ -5724,7 +5724,7 @@ func (s *TimerLayerStatusStore) UpdateLastActivityAt(userId string, lastActivity
|
||||
return err
|
||||
}
|
||||
|
||||
func (s *TimerLayerSystemStore) Get() (model.StringMap, *model.AppError) {
|
||||
func (s *TimerLayerSystemStore) Get() (model.StringMap, error) {
|
||||
start := timemodule.Now()
|
||||
|
||||
result, err := s.SystemStore.Get()
|
||||
@@ -5740,7 +5740,7 @@ func (s *TimerLayerSystemStore) Get() (model.StringMap, *model.AppError) {
|
||||
return result, err
|
||||
}
|
||||
|
||||
func (s *TimerLayerSystemStore) GetByName(name string) (*model.System, *model.AppError) {
|
||||
func (s *TimerLayerSystemStore) GetByName(name string) (*model.System, error) {
|
||||
start := timemodule.Now()
|
||||
|
||||
result, err := s.SystemStore.GetByName(name)
|
||||
@@ -5756,7 +5756,7 @@ func (s *TimerLayerSystemStore) GetByName(name string) (*model.System, *model.Ap
|
||||
return result, err
|
||||
}
|
||||
|
||||
func (s *TimerLayerSystemStore) InsertIfExists(system *model.System) (*model.System, *model.AppError) {
|
||||
func (s *TimerLayerSystemStore) InsertIfExists(system *model.System) (*model.System, error) {
|
||||
start := timemodule.Now()
|
||||
|
||||
result, err := s.SystemStore.InsertIfExists(system)
|
||||
@@ -5772,7 +5772,7 @@ func (s *TimerLayerSystemStore) InsertIfExists(system *model.System) (*model.Sys
|
||||
return result, err
|
||||
}
|
||||
|
||||
func (s *TimerLayerSystemStore) PermanentDeleteByName(name string) (*model.System, *model.AppError) {
|
||||
func (s *TimerLayerSystemStore) PermanentDeleteByName(name string) (*model.System, error) {
|
||||
start := timemodule.Now()
|
||||
|
||||
result, err := s.SystemStore.PermanentDeleteByName(name)
|
||||
@@ -5788,7 +5788,7 @@ func (s *TimerLayerSystemStore) PermanentDeleteByName(name string) (*model.Syste
|
||||
return result, err
|
||||
}
|
||||
|
||||
func (s *TimerLayerSystemStore) Save(system *model.System) *model.AppError {
|
||||
func (s *TimerLayerSystemStore) Save(system *model.System) error {
|
||||
start := timemodule.Now()
|
||||
|
||||
err := s.SystemStore.Save(system)
|
||||
@@ -5804,7 +5804,7 @@ func (s *TimerLayerSystemStore) Save(system *model.System) *model.AppError {
|
||||
return err
|
||||
}
|
||||
|
||||
func (s *TimerLayerSystemStore) SaveOrUpdate(system *model.System) *model.AppError {
|
||||
func (s *TimerLayerSystemStore) SaveOrUpdate(system *model.System) error {
|
||||
start := timemodule.Now()
|
||||
|
||||
err := s.SystemStore.SaveOrUpdate(system)
|
||||
@@ -5820,7 +5820,7 @@ func (s *TimerLayerSystemStore) SaveOrUpdate(system *model.System) *model.AppErr
|
||||
return err
|
||||
}
|
||||
|
||||
func (s *TimerLayerSystemStore) Update(system *model.System) *model.AppError {
|
||||
func (s *TimerLayerSystemStore) Update(system *model.System) error {
|
||||
start := timemodule.Now()
|
||||
|
||||
err := s.SystemStore.Update(system)
|
||||
|
||||
Ссылка в новой задаче
Block a user