SEBSERV-417 do not send error to Moodle on Exam deletion request when Exam already has been deleted
This commit is contained in:
		
							parent
							
								
									bf7204660d
								
							
						
					
					
						commit
						438453dfe9
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -90,13 +90,12 @@ public class LmsIntegrationController { | |||
|             @RequestParam(name = API.LMS_FULL_INTEGRATION_QUIZ_ID) final String quizId, | ||||
|             final HttpServletResponse response) { | ||||
| 
 | ||||
|         final EntityKey examID = fullLmsIntegrationService.deleteExam(lmsUUId, courseId, quizId) | ||||
|         fullLmsIntegrationService.deleteExam(lmsUUId, courseId, quizId) | ||||
|                 .onError(e -> log.error( | ||||
|                         "Failed to delete exam: lmsId:{}, courseId: {}, quizId: {}, error: {}", | ||||
|                         lmsUUId, courseId, quizId, e.getMessage())) | ||||
|                 .getOrThrow(); | ||||
|                 .onSuccess(examID -> log.info("Auto delete of exam successful: {}", examID)); | ||||
| 
 | ||||
|         log.info("Auto delete of exam successful: {}", examID); | ||||
|     } | ||||
| 
 | ||||
|     @RequestMapping( | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 anhefti
						anhefti