Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 3d7c879

Browse files
committed
Tested and working. Removing some comments.
1 parent 716342b commit 3d7c879

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/services/ProcessorService.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,21 @@ async function associateChallengeTerms (v5Terms, legacyChallengeId) {
7070
const legacyTermsArray = await termsService.getTermsForChallenge(legacyChallengeId)
7171
const legacyNDA = _.find(legacyTermsArray, e => _.toNumber(e.id) === _.toNumber(config.LEGACY_TERMS_NDA_ID))
7272

73-
logger.debug(`V5 Terms ${JSON.stringify(v5Terms)}`)
74-
logger.debug(`V5 NDA Found ${nda} ${JSON.stringify(nda)}`)
73+
// logger.debug(`V5 Terms ${JSON.stringify(v5Terms)}`)
74+
// logger.debug(`V5 NDA Found ${nda} ${JSON.stringify(nda)}`)
7575

76-
logger.debug(`Legacy Terms ${JSON.stringify(legacyTermsArray)}`)
77-
logger.debug(`Legacy NDA Found ${JSON.stringify(legacyNDA)}`)
76+
// logger.debug(`Legacy Terms ${JSON.stringify(legacyTermsArray)}`)
77+
// logger.debug(`Legacy NDA Found ${JSON.stringify(legacyNDA)}`)
7878

7979
if (nda && nda.id && !legacyNDA) {
80-
logger.debug('v5 NDA exist, not in legacy. Adding to Legacy.')
80+
logger.debug('Associate Challenge Terms - v5 NDA exist, not in legacy. Adding to Legacy.')
8181
const m2mToken = await helper.getM2MToken()
8282
const v5Term = await getV5Terms(nda.id, m2mToken)
8383
return termsService.addTermsToChallenge(legacyChallengeId, v5Term.legacyId, config.LEGACY_SUBMITTER_ROLE_ID)
8484
}
8585

8686
if (!nda && legacyNDA && legacyNDA.id) {
87-
logger.debug('Legacy NDA exist, not in V5. Removing from Legacy.')
87+
logger.debug('Associate Challenge Terms - Legacy NDA exist, not in V5. Removing from Legacy.')
8888
return termsService.removeTermsFromChallenge(legacyChallengeId, legacyNDA.id, config.LEGACY_SUBMITTER_ROLE_ID)
8989
}
9090

0 commit comments

Comments
 (0)