Skip to content

Commit 6674001

Browse files
committed
Every imported judgement must have a submissionID
If we would make edgecases for all situations every field would become optional.
1 parent 696cfd0 commit 6674001

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Service/ExternalContestSourceService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1591,7 +1591,7 @@ protected function importJudgement(string $entityType, ?string $eventId, string
15911591
}
15921592

15931593
// Now check if we have all dependent data.
1594-
$submissionId = $data['submission_id'] ?? null;
1594+
$submissionId = $data['submission_id'];
15951595
$submission = $this->em
15961596
->getRepository(Submission::class)
15971597
->findOneBy([

0 commit comments

Comments
 (0)