Skip to content

Commit 7c87858

Browse files
committed
Ignore the persons event
1 parent ae327d5 commit 7c87858

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

webapp/src/DataTransferObject/Shadowing/EventType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ enum EventType: string
1313
case JUDGEMENT_TYPES = 'judgement-types';
1414
case LANGUAGES = 'languages';
1515
case ORGANIZATIONS = 'organizations';
16+
case PERSONS = 'persons';
1617
case PROBLEMS = 'problems';
1718
case RUNS = 'runs';
1819
case STATE = 'state';

webapp/src/Service/ExternalContestSourceService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ public function importEvent(Event $event, array $eventsToSkip): void
621621

622622
// Note the @vars here are to make PHPStan understand the correct types.
623623
$method = match ($event->type) {
624-
EventType::AWARDS, EventType::TEAM_MEMBERS, EventType::ACCOUNTS => $this->ignoreEvent(...),
624+
EventType::AWARDS, EventType::TEAM_MEMBERS, EventType::ACCOUNTS, EventType::PERSONS => $this->ignoreEvent(...),
625625
EventType::STATE => $this->validateState(...),
626626
EventType::CONTESTS => $this->validateAndUpdateContest(...),
627627
EventType::JUDGEMENT_TYPES => $this->importJudgementType(...),

0 commit comments

Comments
 (0)