From 832ae9ea346d317e9b3288638c4c7be071f30ba3 Mon Sep 17 00:00:00 2001 From: ale Date: Fri, 15 Nov 2024 20:10:00 +0100 Subject: [PATCH] refactor blockcount --- lib/apiswagger.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/apiswagger.js b/lib/apiswagger.js index 8380c30..176a8ac 100644 --- a/lib/apiswagger.js +++ b/lib/apiswagger.js @@ -454,7 +454,6 @@ 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, @@ -469,7 +468,6 @@ module.exports = (app, client) => { } } }, { asStream: true, meta: false }), - instancescomment = [], pipeline = chain([ parser(), pick({ filter: 'hits.hits' }),