download index
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
ale 2024-09-23 02:56:39 +02:00
parent 23b59e35b4
commit 885576a746

View File

@ -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()