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

Commit 0a2707f

Browse files
committed
fix: missing env variables
Signed-off-by: Rakib Ansary <[email protected]>
1 parent 94048ac commit 0a2707f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/default.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ module.exports = {
5252
CHARITY_IND: process.env.CHARITY_IND || 0,
5353
INSTALLMENT_NUMBER: process.env.INSTALLMENT_NUMBER || 1,
5454
COPILOT_ROLE_ID: process.env.COPILOT_ROLE_ID || 'cfe12b3f-2a24-4639-9d8b-ec86726f76bd',
55-
TOPCROWD_CHALLENGE_TEMPLATE_ID: "517e76b0-8824-4e72-9b48-a1ebde1793a8"
55+
TOPCROWD_CHALLENGE_TEMPLATE_ID: process.env.TOPCROWD_CHALLENGE_TEMPLATE_ID || "517e76b0-8824-4e72-9b48-a1ebde1793a8"
5656
}

src/app.js

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

4949
// Currently only process payments for challenges with `legacy.pureV5Task: true` or `legacy.pureV5: true`
5050
if (!_.get(messageJSON.payload, 'legacy.pureV5Task', false) && !_.get(messageJSON.payload, 'legacy.pureV5', false) && timelineTemplateId != config.get('TOPCROWD_CHALLENGE_TEMPLATE_ID')) {
51-
logger.info(`Challenge Legacy Object ${JSON.stringify(_.get(messageJSON.payload, 'legacy'))} does not have legacy.pureV5Task: true or legacy.pureV5: true or timelineTemplateId: ${timelineTemplateId}.`)
51+
logger.info(`Challenge Legacy Object ${JSON.stringify(_.get(messageJSON.payload, 'legacy'))} does not have legacy.pureV5Task: true or legacy.pureV5: true or timelineTemplateId: ${timelineTemplateId} mismatch with ${config.get('TOPCROWD_CHALLENGE_TEMPLATE_ID')}.`)
5252
await consumer.commitOffset({ topic, partition, offset: m.offset })
5353
return
5454
}

0 commit comments

Comments
 (0)