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

Commit 01d197e

Browse files
author
James Cori
committed
Checking a string against an int
1 parent 2160b14 commit 01d197e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/termsService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ async function addTermsToChallenge (challengeLegacyId, legacyTermsId, legacyReso
5757
const piqueryDelete = await prepare(connection, QUERY_DELETE_PROJECT_INFO_CHALLENGE_TERMS)
5858
await piqueryDelete.executeAsync([challengeLegacyId])
5959

60-
logger.debug(`Creating Terms - adding project info record for ${challengeLegacyId}`)
60+
logger.debug(`Creating Terms - adding project info record for ${challengeLegacyId} ${legacyTermsId} === ${config.LEGACY_TERMS_NDA_ID}`)
6161
// add the project info record for the `Confidentiality Type`
62-
const termsProjectInfoValue = (legacyTermsId === config.LEGACY_TERMS_NDA_ID) ? 'stanard_cca' : 'public'
62+
const termsProjectInfoValue = (legacyTermsId.toString() === config.LEGACY_TERMS_NDA_ID.toString()) ? 'stanard_cca' : 'public'
6363
const piquery = await prepare(connection, QUERY_INSERT_PROJECT_INFO_CHALLENGE_TERMS)
6464
await piquery.executeAsync([challengeLegacyId, termsProjectInfoValue, createdBy, updatedBy])
6565

0 commit comments

Comments
 (0)