fixed error for getting exams on invalid LMS Setup
This commit is contained in:
		
							parent
							
								
									9941d57d44
								
							
						
					
					
						commit
						7ad3dc77b5
					
				
					 1 changed files with 9 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -756,9 +756,15 @@ public class ExamDAOImpl implements ExamDAO {
 | 
			
		|||
            return lmsSetupToRecordMapping
 | 
			
		||||
                    .entrySet()
 | 
			
		||||
                    .stream()
 | 
			
		||||
                    .flatMap(entry -> toDomainModel(entry.getKey(), entry.getValue(), cached)
 | 
			
		||||
                            .getOrThrow()
 | 
			
		||||
                            .stream())
 | 
			
		||||
                    .flatMap(entry -> toDomainModel(
 | 
			
		||||
                            entry.getKey(),
 | 
			
		||||
                            entry.getValue(),
 | 
			
		||||
                            cached)
 | 
			
		||||
                                    .onError(error -> log.error(
 | 
			
		||||
                                            "Failed to get quizzes form LMS Setup: {}",
 | 
			
		||||
                                            entry.getKey(), error))
 | 
			
		||||
                                    .getOr(Collections.emptyList())
 | 
			
		||||
                                    .stream())
 | 
			
		||||
                    .collect(Collectors.toList());
 | 
			
		||||
        });
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue