Migrate PermanentDelete method from ChannelStore to return error inte… (#14706)

Automatic Merge
Этот коммит содержится в:
Rodrigo Villablanca
2020-06-06 05:47:18 -04:00
коммит произвёл GitHub
родитель 88e8f56f03
Коммит 6f28f3526d
10 изменённых файлов: 26 добавлений и 40 удалений

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

@@ -194,7 +194,7 @@ func (c *SearchChannelStore) PermanentDeleteMembersByChannel(channelId string) *
return err
}
func (c *SearchChannelStore) PermanentDelete(channelId string) *model.AppError {
func (c *SearchChannelStore) PermanentDelete(channelId string) error {
channel, channelErr := c.ChannelStore.Get(channelId, true)
if channelErr != nil {
mlog.Error("Encountered error deleting channel", mlog.String("channel_id", channelId), mlog.Err(channelErr))