This commit is contained in:
parent
1eb0efe2a2
commit
3c19b1c7bc
@ -461,6 +461,7 @@ 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,
|
||||||
@ -476,7 +477,6 @@ module.exports = (app, client) => {
|
|||||||
}
|
}
|
||||||
}, { asStream: true, meta: false }),
|
}, { asStream: true, meta: false }),
|
||||||
instancescomment = [],
|
instancescomment = [],
|
||||||
block_count = 0,
|
|
||||||
pipeline = chain([
|
pipeline = chain([
|
||||||
parser(),
|
parser(),
|
||||||
pick({ filter: 'hits.hits' }),
|
pick({ filter: 'hits.hits' }),
|
||||||
|
Loading…
Reference in New Issue
Block a user