Skip to content

Commit e97e88c

Browse files
authored
Merge pull request #111 from topcoder-platform/PM-2596_prizes-description
PM-2596 - Improved description for copilot & checkpoint winner payments
2 parents a47cee7 + d0dd104 commit e97e88c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api/challenges/challenges.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class ChallengesService {
145145
description:
146146
challenge.type === 'Task'
147147
? challenge.name
148-
: `${challenge.name} - ${placeToOrdinal(winner.placement)} Place`,
148+
: `${challenge.name} - ${type === WinningsCategory.CONTEST_CHECKPOINT_PAYMENT ? 'Checkpoint ' : ''}${placeToOrdinal(winner.placement)} Place`,
149149
}));
150150
}
151151

@@ -220,6 +220,7 @@ export class ChallengesService {
220220
amount: copilotPrizes[0].value,
221221
userId: copilot.memberId.toString(),
222222
type: WinningsCategory.COPILOT_PAYMENT,
223+
description: `${challenge.name} - Copilot payment`,
223224
}));
224225
}
225226

0 commit comments

Comments
 (0)