MM-15291: migrate commandStore.Delete to sync by default (#10742)

Этот коммит содержится в:
Puneeth Reddy
2019-05-01 00:10:27 -07:00
коммит произвёл Hanzei
родитель e6be06b3fc
Коммит ebbfdf9e5c
5 изменённых файлов: 20 добавлений и 20 удалений

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

@@ -525,9 +525,6 @@ func (a *App) DeleteCommand(commandId string) *model.AppError {
if !*a.Config().ServiceSettings.EnableCommands {
return model.NewAppError("DeleteCommand", "api.command.disabled.app_error", nil, "", http.StatusNotImplemented)
}
result := <-a.Srv.Store.Command().Delete(commandId, model.GetMillis())
if result.Err != nil {
return result.Err
}
return nil
return a.Srv.Store.Command().Delete(commandId, model.GetMillis())
}