This commit is contained in:
parent
d54bf8ec6e
commit
0d3bf4be19
@ -474,7 +474,7 @@ module.exports = (app, client) => {
|
||||
streamArray(),
|
||||
data => ({ instance: data.value._source.instance, comment: data.value._source.blocks.find(block => block.domain === clean(req.params.instance)).comment })
|
||||
])
|
||||
result.on('readable', () => res.write('['))
|
||||
pipeline.on('readable', () => res.write('['))
|
||||
pipeline.on('data', data => res.write(data.toString() + ','))
|
||||
pipeline.on('end', () => res.end(']'))
|
||||
result.pipe(pipeline)
|
||||
|
Loading…
Reference in New Issue
Block a user