Skip to content

Commit

Permalink
fix: resolve merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangchung authored Jun 14, 2024
1 parent 0f2ab2c commit 42be03c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions app/challenges-platform/services/submissions-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,11 @@ export const findByUuid = async (
const challengeResult = await ChallengesService.findById(record.challengeId);
if (!challengeResult.ok) {
return Err(new Error("Failed to find challenge"));
} else if (challengeResult.val.deleted === true) {
return Err(new Error("Challenge is deleted"));
}
<<<<<<< AJP/reviews-findByUuid

const participantResult = await ParticipantsService.findById(record.participantId);
=======
if (challengeResult.val.deleted === true) {
return Err(new Error("Challenge is deleted"));
}
const participantResult = await ParticipantsService.findByUuid(participantId);
>>>>>>> main
if (!participantResult.ok) {
return Err(new Error("Failed to find participant"));
}
Expand Down

0 comments on commit 42be03c

Please sign in to comment.