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

This commit is contained in:
ale 2024-11-15 20:10:00 +01:00
parent 839c34a310
commit 832ae9ea34

View File

@ -454,7 +454,6 @@ module.exports = (app, client) => {
*/ */
app.use('/api/block_count/:instance', async (req, res) => { app.use('/api/block_count/:instance', async (req, res) => {
if (req.params.instance && req.params.instance.length > 0) { if (req.params.instance && req.params.instance.length > 0) {
let block_count = 0
const result = await client.search({ const result = await client.search({
index: constant.index, index: constant.index,
size: 9999, size: 9999,
@ -469,7 +468,6 @@ module.exports = (app, client) => {
} }
} }
}, { asStream: true, meta: false }), }, { asStream: true, meta: false }),
instancescomment = [],
pipeline = chain([ pipeline = chain([
parser(), parser(),
pick({ filter: 'hits.hits' }), pick({ filter: 'hits.hits' }),