Migration of AuditStore to return plain errors (#14825)

Automatic Merge
Этот коммит содержится в:
Rodrigo Villablanca
2020-06-26 00:26:35 -04:00
коммит произвёл GitHub
родитель 98d72e51fe
Коммит 0118db9d23
12 изменённых файлов: 100 добавлений и 72 удалений

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

@@ -329,7 +329,7 @@ type TimerLayerWebhookStore struct {
Root *TimerLayer
}
func (s *TimerLayerAuditStore) Get(user_id string, offset int, limit int) (model.Audits, *model.AppError) {
func (s *TimerLayerAuditStore) Get(user_id string, offset int, limit int) (model.Audits, error) {
start := timemodule.Now()
resultVar0, resultVar1 := s.AuditStore.Get(user_id, offset, limit)
@@ -345,7 +345,7 @@ func (s *TimerLayerAuditStore) Get(user_id string, offset int, limit int) (model
return resultVar0, resultVar1
}
func (s *TimerLayerAuditStore) PermanentDeleteByUser(userId string) *model.AppError {
func (s *TimerLayerAuditStore) PermanentDeleteByUser(userId string) error {
start := timemodule.Now()
resultVar0 := s.AuditStore.PermanentDeleteByUser(userId)
@@ -361,7 +361,7 @@ func (s *TimerLayerAuditStore) PermanentDeleteByUser(userId string) *model.AppEr
return resultVar0
}
func (s *TimerLayerAuditStore) Save(audit *model.Audit) *model.AppError {
func (s *TimerLayerAuditStore) Save(audit *model.Audit) error {
start := timemodule.Now()
resultVar0 := s.AuditStore.Save(audit)