Migrate Update method from ChannelStore to return idiomatic plain error (#14687)

* Partial advances

* Update migrated

* Fix imports

* Suggestions

* Suggestions

* Updating i18n

Co-authored-by: Jesús Espino <jespinog@gmail.com>
Co-authored-by: mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Rodrigo Villablanca
2020-06-02 11:20:34 -04:00
коммит произвёл GitHub
родитель 6a5dd550c8
Коммит 60cc775cf6
11 изменённых файлов: 58 добавлений и 66 удалений

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

@@ -1729,7 +1729,7 @@ func (s *TimerLayerChannelStore) SetDeleteAt(channelId string, deleteAt int64, u
return resultVar0
}
func (s *TimerLayerChannelStore) Update(channel *model.Channel) (*model.Channel, *model.AppError) {
func (s *TimerLayerChannelStore) Update(channel *model.Channel) (*model.Channel, error) {
start := timemodule.Now()
resultVar0, resultVar1 := s.ChannelStore.Update(channel)