Migrate CommandWebhook.Save to sync by default (#11595)

Этот коммит содержится в:
Rodrigo Villablanca Vásquez
2019-07-09 10:42:10 -04:00
коммит произвёл jfrerich
родитель ce61681c92
Коммит 25a2e7e981
5 изменённых файлов: 36 добавлений и 30 удалений

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

@@ -673,11 +673,7 @@ func (a *App) CreateCommandWebhook(commandId string, args *model.CommandArgs) (*
ParentId: args.ParentId,
}
if result := <-a.Srv.Store.CommandWebhook().Save(hook); result.Err != nil {
return nil, result.Err
} else {
return result.Data.(*model.CommandWebhook), nil
}
return a.Srv.Store.CommandWebhook().Save(hook)
}
func (a *App) HandleCommandWebhook(hookId string, response *model.CommandResponse) *model.AppError {