PLT-6596: Elasticsearch interface changes. (#6993)

Этот коммит содержится в:
George Goldberg
2017-07-21 01:38:44 +01:00
коммит произвёл Saturnino Abril
родитель 58839cefb5
Коммит f30c0b5d38
2 изменённых файлов: 2 добавлений и 2 удалений

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

@@ -473,7 +473,7 @@ func DeletePost(postId string) (*model.Post, *model.AppError) {
esInterface := einterfaces.GetElasticsearchInterface()
if esInterface != nil && *utils.Cfg.ElasticSearchSettings.EnableIndexing {
go esInterface.DeletePost(post.Id)
go esInterface.DeletePost(post)
}
InvalidateCacheForChannelPosts(post.ChannelId)

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

@@ -9,7 +9,7 @@ type ElasticsearchInterface interface {
Start() *model.AppError
IndexPost(post *model.Post, teamId string) *model.AppError
SearchPosts(channels *model.ChannelList, searchParams []*model.SearchParams) ([]string, *model.AppError)
DeletePost(postId string) *model.AppError
DeletePost(post *model.Post) *model.AppError
TestConfig(cfg *model.Config) *model.AppError
PurgeIndexes() *model.AppError
}