@@ -75,18 +75,18 @@ async function queueChallenges (filter) {
75
75
let running = true
76
76
let queuedCount = 0
77
77
78
- logger . debug ( `Filter: ${ JSON . stringify ( filter ) } ` )
78
+ // logger.debug(`Filter: ${JSON.stringify(filter)}`)
79
79
// get active challenges from v4
80
80
const v4response = await syncService . getV4ChallengeIds ( filter )
81
- logger . debug ( `v4 Response: ${ JSON . stringify ( v4response ) } ` )
81
+ // logger.debug(`v4 Response: ${JSON.stringify(v4response)}`)
82
82
const v4IdArray = _ . map ( _ . get ( v4response , 'ids' , [ ] ) , id => _ . toNumber ( id ) )
83
83
// console.log('v4', v4IdArray)
84
- logger . debug ( `v4 Array ${ JSON . stringify ( v4IdArray ) } ` )
84
+ // logger.debug(`v4 Array ${JSON.stringify(v4IdArray)}`)
85
85
// get active challenges from v5
86
86
const v5response = await syncService . getV5LegacyChallengeIds ( filter )
87
- logger . debug ( `v5 Response: ${ JSON . stringify ( v5response ) } ` )
87
+ // logger.debug(`v5 Response: ${JSON.stringify(v5response)}`)
88
88
const v5IdArray = _ . map ( _ . get ( v5response , 'ids' , [ ] ) , id => _ . toNumber ( id ) )
89
- logger . debug ( `v5 Array ${ JSON . stringify ( v5IdArray ) } ` )
89
+ // logger.debug(`v5 Array ${JSON.stringify(v5IdArray)}`)
90
90
91
91
// combine arrays, return unique
92
92
const combinedArray = union ( v4IdArray , v5IdArray )
@@ -127,13 +127,13 @@ async function queueChallengeById (legacyId, withLogging = false, force = false)
127
127
logger . info ( `Sync :: Queue challenge with ID: ${ legacyId } ` )
128
128
}
129
129
130
- logger . debug ( `queueChallengeById - Force Value: ${ force } - Force Check: ${ force === true } ` )
130
+ // logger.debug(`queueChallengeById - Force Value: ${force} - Force Check: ${force === true}`)
131
131
if ( force === true ) {
132
132
// forced, do it anyway
133
133
logger . info ( `Sync :: Sync of ${ legacyId } is being forced` )
134
134
return challengeSyncStatusService . queueForSync ( legacyId , true )
135
- } else {
136
- logger . debug ( `Sync :: Sync Not Forced ${ legacyId } ` )
135
+ // } else {
136
+ // logger.debug(`Sync :: Sync Not Forced ${legacyId}`)
137
137
}
138
138
139
139
// make sure it's not already queued
0 commit comments