This commit is contained in:
parent
cfb7baff52
commit
a3bb3287ef
@ -474,7 +474,7 @@ module.exports = (app, client) => {
|
|||||||
pick({ filter: 'hits.hits' }),
|
pick({ filter: 'hits.hits' }),
|
||||||
streamArray(),
|
streamArray(),
|
||||||
data => ({ instance: data.value._source.instance, comment: data.value._source.blocks.find(block => block.domain === clean(req.params.instance)).comment }),
|
data => ({ instance: data.value._source.instance, comment: data.value._source.blocks.find(block => block.domain === clean(req.params.instance)).comment }),
|
||||||
stringer({ objectMode: true })
|
stringer()
|
||||||
])
|
])
|
||||||
result.pipe(pipeline).pipe(res)
|
result.pipe(pipeline).pipe(res)
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user