Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit dd36091

Browse files
authored
Merge pull request #185 from DivanteLtd/develop
apiVersion fix
2 parents 58a8888 + 2934f18 commit dd36091

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

config/default.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"attribute",
3030
"taxrule",
3131
"review"
32-
]
32+
],
33+
"apiVersion": "5.6"
3334
},
3435
"redis": {
3536
"host": "localhost",

migrations/.common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let es = require('elasticsearch')
77
const esConfig = {
88
host: config.elasticsearch.host + ':' + config.elasticsearch.port,
99
log: 'debug',
10-
apiVersion: '5.5',
10+
apiVersion: config.elasticsearch.apiVersion,
1111
requestTimeout: 1000 * 60 * 60,
1212
keepAlive: false
1313
}

src/api/extensions/gls-parcelshop-dk/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ cli.command('buildcache', () => {
2121
port: config.elasticsearch.port
2222
},
2323
log: 'debug',
24-
apiVersion: '5.5',
24+
apiVersion: config.elasticsearch.apiVersion,
2525
requestTimeout: 1000 * 60 * 60,
2626
keepAlive: false
2727
}

src/platform/magento2/tax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class TaxProxy extends AbstractTaxProxy {
6464
const esConfig = { // as we're runing tax calculation and other data, we need a ES indexer
6565
host: this._config.elasticsearch.host + ':' + this._config.elasticsearch.port,
6666
log: 'debug',
67-
apiVersion: '5.5',
67+
apiVersion: this._config.elasticsearch.apiVersion,
6868
requestTimeout: 5000
6969
}
7070
if (this._config.elasticsearch.user) {

0 commit comments

Comments
 (0)