refactor blockcount
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
ale 2024-11-15 21:07:12 +01:00
parent e4e6e6b13b
commit d54bf8ec6e

View File

@ -476,7 +476,7 @@ module.exports = (app, client) => {
]) ])
result.on('readable', () => res.write('[')) result.on('readable', () => res.write('['))
pipeline.on('data', data => res.write(data.toString() + ',')) pipeline.on('data', data => res.write(data.toString() + ','))
pipeline.on('finish', () => res.end(']')) pipeline.on('end', () => res.end(']'))
result.pipe(pipeline) result.pipe(pipeline)
} else { } else {
res.status(404).end() res.status(404).end()