MM-15287: Migrate commandstore.save to sync by default (#10738)

* MM-15287: Migrate commandstore.save to sync by default

* MM-15287: Minor change to follow code consistency
Этот коммит содержится в:
Puneeth Reddy
2019-04-29 09:07:38 -07:00
коммит произвёл Jesús Espino
родитель c8920588a0
Коммит 13403b2cc1
5 изменённых файлов: 67 добавлений и 39 удалений

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

@@ -466,12 +466,7 @@ func (a *App) CreateCommand(cmd *model.Command) (*model.Command, *model.AppError
}
}
result := <-a.Srv.Store.Command().Save(cmd)
if result.Err != nil {
return nil, result.Err
}
return result.Data.(*model.Command), nil
return a.Srv.Store.Command().Save(cmd)
}
func (a *App) GetCommand(commandId string) (*model.Command, *model.AppError) {