[MM-10768] Migrate "Channel.SaveDirectChannel" to Sync by default (#10846)

Этот коммит содержится в:
Shota Gvinepadze
2019-05-17 00:04:58 +04:00
коммит произвёл Hanzei
родитель 2d3e417833
Коммит fab2e349b3
10 изменённых файлов: 139 добавлений и 120 удалений

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

@@ -1136,8 +1136,8 @@ func (a *App) ImportDirectChannel(data *DirectChannelImportData, dryRun bool) *m
if data.Header != nil {
channel.Header = *data.Header
if _, apperr := a.Srv.Store.Channel().Update(channel); apperr != nil {
return model.NewAppError("BulkImport", "app.import.import_direct_channel.update_header_failed.error", nil, apperr.Error(), http.StatusBadRequest)
if _, appErr := a.Srv.Store.Channel().Update(channel); appErr != nil {
return model.NewAppError("BulkImport", "app.import.import_direct_channel.update_header_failed.error", nil, appErr.Error(), http.StatusBadRequest)
}
}