error handling exam template -> just take first default if there are
more then one
This commit is contained in:
parent
6e4a1afd9e
commit
b63a5f0d44
1 changed files with 0 additions and 4 deletions
|
@ -110,10 +110,6 @@ public class ExamTemplateDAOImpl implements ExamTemplateDAO {
|
|||
throw new ResourceNotFoundException(EntityType.EXAM_TEMPLATE, String.valueOf(institutionId));
|
||||
}
|
||||
|
||||
if (defaults.size() != 1) {
|
||||
throw new IllegalStateException("Expected one default but was: " + defaults.size());
|
||||
}
|
||||
|
||||
return defaults.get(0);
|
||||
})
|
||||
.flatMap(this::toDomainModel);
|
||||
|
|
Loading…
Reference in a new issue