Merge branch 'be/quiz' into 'backend'

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

See merge request s11-webmobile1-sub2/S11P12A701!109
This commit is contained in:
김한얼 2024-08-08 16:05:14 +09:00
commit 7f20b2f1ae
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<>();