File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -492,7 +492,6 @@ listChallengesByMember.schema = {
492492}
493493
494494async function searchESWithScroll ( mustQuery ) {
495- console . log ( 'searchESWithScroll' )
496495 const scrollTimeout = '1m'
497496 const esQuery = {
498497 index : config . get ( 'ES.ES_INDEX' ) ,
@@ -509,20 +508,16 @@ async function searchESWithScroll (mustQuery) {
509508 }
510509
511510 const esClient = await helper . getESClient ( )
512- console . log ( 'searchESWithScroll: esClient.search' )
513511 const searchResponse = await esClient . search ( esQuery )
514512
515513 // eslint-disable-next-line camelcase
516514 const { _scroll_id, hits } = searchResponse
517515 const totalHits = hits . total
518- // eslint-disable-next-line camelcase
519- console . log ( `_scroll_id: ${ _scroll_id } ` )
520- console . log ( `totalHits: ${ totalHits } ` )
516+
521517 // eslint-disable-next-line camelcase
522518 let scrollId = _scroll_id
523519
524520 while ( hits . hits . length < totalHits ) {
525- console . log ( `currentHits.length: ${ hits . hits . length } ` )
526521 const nextScrollResponse = await esClient . scroll ( {
527522 scroll : scrollTimeout ,
528523 scroll_id : scrollId
You can’t perform that action at this time.
0 commit comments