summaryrefslogtreecommitdiffstats
path: root/app/post.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-07-27 08:48:02 +0100
committerGitHub <noreply@github.com>2017-07-27 08:48:02 +0100
commitff0a7905166e29ecf9404fa90d23af7863885384 (patch)
treeedb8f060e2e083cdb55ed4c0d464ac44b7112242 /app/post.go
parent244b15ea5b7039ecca1614140cbcf62ba3379184 (diff)
downloadchat-ff0a7905166e29ecf9404fa90d23af7863885384.tar.gz
chat-ff0a7905166e29ecf9404fa90d23af7863885384.tar.bz2
chat-ff0a7905166e29ecf9404fa90d23af7863885384.zip
PLT-7040: Fix capitalisation of Elasticsearch in Config. (#7020)
Diffstat (limited to 'app/post.go')
-rw-r--r--app/post.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/post.go b/app/post.go
index 447fef6bb..99626c41f 100644
--- a/app/post.go
+++ b/app/post.go
@@ -100,7 +100,7 @@ func CreatePost(post *model.Post, teamId string, triggerWebhooks bool) (*model.P
}
esInterface := einterfaces.GetElasticsearchInterface()
- if esInterface != nil && *utils.Cfg.ElasticSearchSettings.EnableIndexing {
+ if esInterface != nil && *utils.Cfg.ElasticsearchSettings.EnableIndexing {
go esInterface.IndexPost(rpost, teamId)
}
@@ -285,10 +285,10 @@ func UpdatePost(post *model.Post, safeUpdate bool) (*model.Post, *model.AppError
rpost := result.Data.(*model.Post)
esInterface := einterfaces.GetElasticsearchInterface()
- if esInterface != nil && *utils.Cfg.ElasticSearchSettings.EnableIndexing {
+ if esInterface != nil && *utils.Cfg.ElasticsearchSettings.EnableIndexing {
go func() {
if rchannel := <-Srv.Store.Channel().GetForPost(rpost.Id); rchannel.Err != nil {
- l4g.Error("Couldn't get channel %v for post %v for ElasticSearch indexing.", rpost.ChannelId, rpost.Id)
+ l4g.Error("Couldn't get channel %v for post %v for Elasticsearch indexing.", rpost.ChannelId, rpost.Id)
} else {
esInterface.IndexPost(rpost, rchannel.Data.(*model.Channel).TeamId)
}
@@ -472,7 +472,7 @@ func DeletePost(postId string) (*model.Post, *model.AppError) {
go DeleteFlaggedPosts(post.Id)
esInterface := einterfaces.GetElasticsearchInterface()
- if esInterface != nil && *utils.Cfg.ElasticSearchSettings.EnableIndexing {
+ if esInterface != nil && *utils.Cfg.ElasticsearchSettings.EnableIndexing {
go esInterface.DeletePost(post)
}
@@ -503,7 +503,7 @@ func SearchPostsInTeam(terms string, userId string, teamId string, isOrSearch bo
paramsList := model.ParseSearchParams(terms)
esInterface := einterfaces.GetElasticsearchInterface()
- if esInterface != nil && *utils.Cfg.ElasticSearchSettings.EnableSearching && utils.IsLicensed && *utils.License.Features.Elasticsearch {
+ if esInterface != nil && *utils.Cfg.ElasticsearchSettings.EnableSearching && utils.IsLicensed && *utils.License.Features.Elasticsearch {
finalParamsList := []*model.SearchParams{}
for _, params := range paramsList {