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

Commit 91a6829

Browse files
committed
Merge branch 'develop'
2 parents a066f84 + 8bf7f3b commit 91a6829

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/constants.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
*/
44

55
const prizeSetTypes = {
6-
ChallengePrizes: 'Challenge prizes',
7-
CheckPoint: 'Check Point'
6+
ChallengePrizes: 'placement',
7+
CopilotPayment: 'copilot',
8+
ReviewerPayment: 'reviewer',
9+
CheckPoint: 'checkpoint'
810
}
911

1012
const EVENT_ORIGINATOR = 'legacy-challenge-processor'

src/services/ProcessorService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ async function parsePayload (payload, m2mToken, isCreated = true) {
143143
data.checkpointPrize = 0
144144
}
145145

146-
// prize type can be Challenge prizes/Check Point
147-
const challengePrizes = _.filter(payload.prizeSets, p => p.type !== constants.prizeSetTypes.CheckPoint)
146+
// prize type can be Challenge prizes
147+
const challengePrizes = _.filter(payload.prizeSets, p => p.type !== constants.prizeSetTypes.ChallengePrizes)
148148
if (challengePrizes.length > 1) {
149149
throw new Error('Challenge prize information is invalid.')
150150
}

0 commit comments

Comments
 (0)