Skip to content

Commit bd5bc82

Browse files
committed
chore: remove debug logs
Signed-off-by: Rakib Ansary <[email protected]>
1 parent ac84cae commit bd5bc82

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/services/ResourceService.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,6 @@ listChallengesByMember.schema = {
492492
}
493493

494494
async 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

0 commit comments

Comments
 (0)