Skip to content

Commit d57f387

Browse files
author
DOMjudge team
committed
Document the hot-fix as this breaks importing on live situations
1 parent 8e78b10 commit d57f387

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)