MM-15291: migrate commandStore.Delete to sync by default (#10742)
Этот коммит содержится в:
коммит произвёл
Hanzei
родитель
e6be06b3fc
Коммит
ebbfdf9e5c
@@ -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())
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user