From a3bb3287ef90c66dc7331443e2b35998a55a5c41 Mon Sep 17 00:00:00 2001 From: ale Date: Fri, 15 Nov 2024 22:19:08 +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 b3a3ff0..fd9a953 100644 --- a/lib/apiswagger.js +++ b/lib/apiswagger.js @@ -474,7 +474,7 @@ module.exports = (app, client) => { pick({ filter: 'hits.hits' }), streamArray(), data => ({ instance: data.value._source.instance, comment: data.value._source.blocks.find(block => block.domain === clean(req.params.instance)).comment }), - stringer({ objectMode: true }) + stringer() ]) result.pipe(pipeline).pipe(res) } else {