feat: quiz 실시된 기록이 있는 퀴즈 수정 제한

This commit is contained in:
kgc91747 2024-08-08 16:03:10 +09:00
parent c720d97985
commit ebadf5e5a7
3 changed files with 4 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

View File

@ -73,6 +73,10 @@ public class QuizController {
return new ResponseEntity<>(HttpStatus.UNAUTHORIZED); return new ResponseEntity<>(HttpStatus.UNAUTHORIZED);
} }
if (quizset.isTested()) {
return new ResponseEntity<>(HttpStatus.CONFLICT);
}
quizSetService.updateQuizSet(quizSetUpdateRequest.getId(), quizSetUpdateRequest.getTitle()); quizSetService.updateQuizSet(quizSetUpdateRequest.getId(), quizSetUpdateRequest.getTitle());
Map<Long, Boolean> quizUpdatedCheckMap = new HashMap<>(); Map<Long, Boolean> quizUpdatedCheckMap = new HashMap<>();