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

Commit 3796e1c

Browse files
author
James Cori
committed
Better Logging on Migration
1 parent 2c7741d commit 3796e1c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/scripts/migrations/009-add-overview-totalPrizes.js

+5
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,13 @@ const migrationFunction = {
3030
if (prizeSetsGroup[constants.prizeSetTypes.ChallengePrizes]) {
3131
const totalPrizes = helper.sumOfPrizes(prizeSetsGroup[constants.prizeSetTypes.ChallengePrizes][0].prizes)
3232
_.set(challenge, 'overview.totalPrizes', totalPrizes)
33+
// logger.debug(`Updating Challenge ${challenge.id} - ${JSON.stringify(challenge.overview)}`)
3334
await challengeService.save(challenge)
35+
} else {
36+
logger.debug(`No prizeSetGroup ${challenge.id}`)
3437
}
38+
} else {
39+
logger.debug(`No prizeSet ${challenge.id}`)
3540
}
3641
}
3742
} else {

0 commit comments

Comments
 (0)