Skip to content

Commit f8c4d6c

Browse files
vmcjeldering
authored andcommitted
Document the hot-fix as this breaks importing on live situations
(cherry picked from commit d57f387)
1 parent 3e14676 commit f8c4d6c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

webapp/src/DataTransferObject/Shadowing/EventType.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ public static function fromString(string $value): EventType
2929
return EventType::CONTESTS;
3030
}
3131

32-
return EventType::from($value);
32+
// When encountering an error for an unknown event
33+
// Consider if we need to verify this as shadow or
34+
// ignore it by adding the case in:
35+
// webapp/src/DataTransferObject/Shadowing/EventType.php
36+
// webapp/src/Service/ExternalContestSourceService.php
37+
return EventType::from($value);
3338
}
3439

3540
/**

0 commit comments

Comments
 (0)