Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit d245319

Browse files
author
Vikas Agarwal
committed
Fixing syntax
1 parent 4a6f24f commit d245319

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/es-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function getESClient () {
2727
})
2828
} else {
2929
if (/.*amazonaws.*/.test(host)) {
30-
esClient = elasticsearch.Client({
30+
esClient = new elasticsearch.Client({
3131
apiVersion: config.get('ES.ES_API_VERSION'),
3232
hosts: host,
3333
connectionClass: require('http-aws-es'), // eslint-disable-line global-require

0 commit comments

Comments
 (0)