Skip to content

Commit f03939c

Browse files
authored
fix: task-payment (#73)
Signed-off-by: Rakib Ansary <rakibansary@topcoder.com>
1 parent 3b50c8b commit f03939c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/domain/Challenge.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,12 @@ class ChallengeDomain extends CoreOperations<Challenge, CreateChallengeInput> {
917917
let totalAmount = 0;
918918
// TODO: Make this list exhaustive
919919
const mapType = (type: string) => {
920-
if (type === "placement") return "CONTEST_PAYMENT";
920+
if (type === "placement") {
921+
if (challengeType === "Task") {
922+
return "TASK_PAYMENT";
923+
}
924+
return "CONTEST_PAYMENT";
925+
}
921926
if (type === "reviewer" || type === "iterative reviewer") return "REVIEW_BOARD_PAYMENT";
922927
if (type === "copilot") return "COPILOT_PAYMENT";
923928

0 commit comments

Comments
 (0)