File tree 1 file changed +1
-6
lines changed
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -492,7 +492,6 @@ listChallengesByMember.schema = {
492
492
}
493
493
494
494
async function searchESWithScroll ( mustQuery ) {
495
- console . log ( 'searchESWithScroll' )
496
495
const scrollTimeout = '1m'
497
496
const esQuery = {
498
497
index : config . get ( 'ES.ES_INDEX' ) ,
@@ -509,20 +508,16 @@ async function searchESWithScroll (mustQuery) {
509
508
}
510
509
511
510
const esClient = await helper . getESClient ( )
512
- console . log ( 'searchESWithScroll: esClient.search' )
513
511
const searchResponse = await esClient . search ( esQuery )
514
512
515
513
// eslint-disable-next-line camelcase
516
514
const { _scroll_id, hits } = searchResponse
517
515
const totalHits = hits . total
518
- // eslint-disable-next-line camelcase
519
- console . log ( `_scroll_id: ${ _scroll_id } ` )
520
- console . log ( `totalHits: ${ totalHits } ` )
516
+
521
517
// eslint-disable-next-line camelcase
522
518
let scrollId = _scroll_id
523
519
524
520
while ( hits . hits . length < totalHits ) {
525
- console . log ( `currentHits.length: ${ hits . hits . length } ` )
526
521
const nextScrollResponse = await esClient . scroll ( {
527
522
scroll : scrollTimeout ,
528
523
scroll_id : scrollId
You can’t perform that action at this time.
0 commit comments