This commit is contained in:
parent
23b59e35b4
commit
885576a746
@ -512,7 +512,8 @@ module.exports = (app, client) => {
|
|||||||
match_all: {}
|
match_all: {}
|
||||||
}
|
}
|
||||||
}, { asStream: true })
|
}, { asStream: true })
|
||||||
result.pipe(chain([
|
chain([
|
||||||
|
result,
|
||||||
parser(),
|
parser(),
|
||||||
streamValues(),
|
streamValues(),
|
||||||
data => [data.value.hits.hits.map(hit => ({
|
data => [data.value.hits.hits.map(hit => ({
|
||||||
@ -523,7 +524,7 @@ module.exports = (app, client) => {
|
|||||||
nodeinfo: hit._source.nodeinfo
|
nodeinfo: hit._source.nodeinfo
|
||||||
}))],
|
}))],
|
||||||
zlib.createGzip()
|
zlib.createGzip()
|
||||||
])).pipe(res, { end: true })
|
]).pipe(res, { end: true })
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
res.status(404).end()
|
res.status(404).end()
|
||||||
|
Loading…
Reference in New Issue
Block a user