From 3c19b1c7bc993884863779983e8bf5376aeed601 Mon Sep 17 00:00:00 2001 From: ale Date: Mon, 14 Oct 2024 00:17:29 +0200 Subject: [PATCH] stream-json --- lib/apiswagger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/apiswagger.js b/lib/apiswagger.js index ef9c5ea..42a147e 100644 --- a/lib/apiswagger.js +++ b/lib/apiswagger.js @@ -461,6 +461,7 @@ module.exports = (app, client) => { */ app.use('/api/block_count/:instance', async (req, res) => { if (req.params.instance && req.params.instance.length > 0) { + let block_count = 0 const result = await client.search({ index: constant.index, size: 9999, @@ -476,7 +477,6 @@ module.exports = (app, client) => { } }, { asStream: true, meta: false }), instancescomment = [], - block_count = 0, pipeline = chain([ parser(), pick({ filter: 'hits.hits' }),