@@ -70,21 +70,21 @@ async function associateChallengeTerms (v5Terms, legacyChallengeId) {
70
70
const legacyTermsArray = await termsService . getTermsForChallenge ( legacyChallengeId )
71
71
const legacyNDA = _ . find ( legacyTermsArray , e => _ . toNumber ( e . id ) === _ . toNumber ( config . LEGACY_TERMS_NDA_ID ) )
72
72
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)}`)
75
75
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)}`)
78
78
79
79
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.' )
81
81
const m2mToken = await helper . getM2MToken ( )
82
82
const v5Term = await getV5Terms ( nda . id , m2mToken )
83
83
return termsService . addTermsToChallenge ( legacyChallengeId , v5Term . legacyId , config . LEGACY_SUBMITTER_ROLE_ID )
84
84
}
85
85
86
86
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.' )
88
88
return termsService . removeTermsFromChallenge ( legacyChallengeId , legacyNDA . id , config . LEGACY_SUBMITTER_ROLE_ID )
89
89
}
90
90
0 commit comments