@@ -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