Remove Node.js v8 support (#1402)
This commit is contained in:
committed by
delvedor
parent
ae3bb7031f
commit
28370acf49
@ -124,7 +124,7 @@ const client = new Client({ node: 'http://localhost:9200' })
|
||||
|
||||
// Scroll utility
|
||||
async function * scrollSearch (params) {
|
||||
var response = await client.search(params)
|
||||
let response = await client.search(params)
|
||||
|
||||
while (true) {
|
||||
const sourceHits = response.body.hits.hits
|
||||
@ -190,4 +190,4 @@ async function run () {
|
||||
}
|
||||
|
||||
run().catch(console.log)
|
||||
----
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user