diff options
Diffstat (limited to 'api4/elasticsearch.go')
-rw-r--r-- | api4/elasticsearch.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api4/elasticsearch.go b/api4/elasticsearch.go index c4d059af9..cfa8292b6 100644 --- a/api4/elasticsearch.go +++ b/api4/elasticsearch.go @@ -30,7 +30,7 @@ func testElasticsearch(c *Context, w http.ResponseWriter, r *http.Request) { return } - if err := app.TestElasticsearch(cfg); err != nil { + if err := c.App.TestElasticsearch(cfg); err != nil { c.Err = err return } @@ -44,7 +44,7 @@ func purgeElasticsearchIndexes(c *Context, w http.ResponseWriter, r *http.Reques return } - if err := app.PurgeElasticsearchIndexes(); err != nil { + if err := c.App.PurgeElasticsearchIndexes(); err != nil { c.Err = err return } |