Skip to content

Commit

Permalink
VKT(Backend): Fix clerk exam event test
Browse files Browse the repository at this point in the history
  • Loading branch information
jrkkp committed Nov 13, 2024
1 parent ee58da0 commit 746872c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ public class DataIntegrityViolationExceptionUtil {
public static boolean isExamEventLanguageLevelDateExaminerUniquenessException(
final DataIntegrityViolationException ex
) {
return matchesConstraint(ex, "uk_exam_event_language_level_date_examiner");
return (
matchesConstraint(ex, "uk_exam_event_language_level_date_examiner") ||
matchesConstraint(ex, "uk_exam_event_language_level_date")
);
}

private static boolean matchesConstraint(final DataIntegrityViolationException ex, final String constraint) {
Expand Down

0 comments on commit 746872c

Please sign in to comment.