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

Commit 716342b

Browse files
committed
Casting both legacy IDs to be a number for comparison
1 parent 54dfcb8 commit 716342b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/ProcessorService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async function associateChallengeGroups (toBeAdded = [], toBeDeleted = [], legac
6868
async function associateChallengeTerms (v5Terms, legacyChallengeId) {
6969
const nda = _.find(v5Terms, e => e.id === config.V5_TERMS_NDA_ID)
7070
const legacyTermsArray = await termsService.getTermsForChallenge(legacyChallengeId)
71-
const legacyNDA = _.find(legacyTermsArray, e => _.toNumber(e.id) === config.LEGACY_TERMS_NDA_ID)
71+
const legacyNDA = _.find(legacyTermsArray, e => _.toNumber(e.id) === _.toNumber(config.LEGACY_TERMS_NDA_ID))
7272

7373
logger.debug(`V5 Terms ${JSON.stringify(v5Terms)}`)
7474
logger.debug(`V5 NDA Found ${nda} ${JSON.stringify(nda)}`)

0 commit comments

Comments
 (0)