Elasticsearch 7 support 🚀 (#760)
* API generation * Updated typings * Updated code generation * Updated test * Updated ci configuration * Fixed test
This commit is contained in:
committed by
GitHub
parent
bd2755a302
commit
7acd2e3b07
@ -97,11 +97,14 @@ function buildIndicesDeleteTemplate (opts) {
|
||||
ignore = [ignore]
|
||||
}
|
||||
|
||||
var path = ''
|
||||
|
||||
path = '/' + '_template' + '/' + encodeURIComponent(params['name'])
|
||||
|
||||
// build request object
|
||||
const parts = ['_template', params['name']]
|
||||
const request = {
|
||||
method,
|
||||
path: '/' + parts.filter(Boolean).map(encodeURIComponent).join('/'),
|
||||
path,
|
||||
body: '',
|
||||
querystring
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user