refactor blockcount
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
ale 2024-11-15 21:11:15 +01:00
parent d54bf8ec6e
commit 0d3bf4be19

View File

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