This commit is contained in:
parent
755e88ba07
commit
9f4c3aaa8a
@ -513,8 +513,7 @@ module.exports = (app, client) => {
|
||||
match_all: {}
|
||||
}
|
||||
}, { asStream: true })
|
||||
chain([
|
||||
result,
|
||||
result.pipe(chain([
|
||||
parser(),
|
||||
data => data.value.hits.hits,
|
||||
streamArray(),
|
||||
@ -527,7 +526,7 @@ module.exports = (app, client) => {
|
||||
}),
|
||||
stringer(),
|
||||
zlib.createGzip()
|
||||
]).pipe(res, { end: true })
|
||||
])).pipe(res, { end: true })
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
res.status(404).end()
|
||||
|
Loading…
Reference in New Issue
Block a user