From d54bf8ec6ef9ee9f296d26fcadd42b9e801e41d5 Mon Sep 17 00:00:00 2001 From: ale Date: Fri, 15 Nov 2024 21:07:12 +0100 Subject: [PATCH] refactor blockcount --- lib/apiswagger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/apiswagger.js b/lib/apiswagger.js index de6b92c..a24c31a 100644 --- a/lib/apiswagger.js +++ b/lib/apiswagger.js @@ -476,7 +476,7 @@ module.exports = (app, client) => { ]) result.on('readable', () => res.write('[')) pipeline.on('data', data => res.write(data.toString() + ',')) - pipeline.on('finish', () => res.end(']')) + pipeline.on('end', () => res.end(']')) result.pipe(pipeline) } else { res.status(404).end()