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

Commit dc7fc54

Browse files
author
James Cori
committed
Merge branch 'develop'
2 parents aca54bb + 69dcb3a commit dc7fc54

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/scripts/migrations/008-fix-copilot-payments.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const migrationFunction = {
4646
// const copilotPayment = await challengeIfxService.getCopilotPaymentFromIfx(legacyId)
4747
const prizeSet = { type: 'copilot', description: 'Copilot Payment' }
4848
prizeSet.prizes = []
49-
prizeSet.prizes.push({ value: legacyCopilotPayment.value, type: 'USD' })
49+
prizeSet.prizes.push({ value: _.toNumber(legacyCopilotPayment.value), type: 'USD' })
5050
updatedChallenge.prizeSets.push(prizeSet)
5151
updatedChallenge.legacy.migration = 8.2
5252
await challengeService.save(updatedChallenge)

src/services/challengeService.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ async function buildV5Challenge (legacyId, challengeListing, challengeDetails) {
652652
if (copilotPayment && copilotPayment.value > 0) {
653653
const prizeSet = { type: 'copilot', description: 'Copilot Payment' }
654654
prizeSet.prizes = []
655-
prizeSet.prizes.push({ value: copilotPayment.value, type: 'USD' })
655+
prizeSet.prizes.push({ value: _.toNumber(copilotPayment.value), type: 'USD' })
656656
prizeSets.push(prizeSet)
657657
}
658658

0 commit comments

Comments
 (0)