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

Commit db9e9b7

Browse files
committed
moving name to env var
1 parent fe95d47 commit db9e9b7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config/default.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module.exports = {
2222
LEADERBOARD_API_URL: process.env.LEADERBOARD_API_URL || 'https://api.topcoder-dev.com/v5/leaderboard',
2323
SUBMISSION_API_URL: process.env.SUBMISSION_API_URL || 'https://api.topcoder-dev.com/v5/submissions',
2424
REVIEW_TYPE_URL: process.env.REVIEW_TYPE_URL || 'https://api.topcoder-dev.com/v5/reviewTypes',
25+
AV_SCAN_NAME: process.env.AV_SCAN_NAME || 'AV Scan',
2526

2627
AUTH0_URL: process.env.AUTH0_URL,
2728
AUTH0_AUDIENCE: process.env.AUTH0_AUDIENCE,

src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const dataHandler = (messageSet, topic, partition) => Promise.each(messageSet, a
4747
return
4848
}
4949

50-
const avScanTypeId = await helper.getreviewTypeId('AV Scan')
50+
const avScanTypeId = await helper.getreviewTypeId(config.AV_SCAN_NAME)
5151

5252
if (messageJSON.payload.typeId === avScanTypeId) {
5353
logger.debug(`Ignoring AV Scan reviews from topic ${messageJSON.topic}`)

0 commit comments

Comments
 (0)