feat: quiz 실시된 기록이 있는 퀴즈 수정 제한
This commit is contained in:
parent
c720d97985
commit
ebadf5e5a7
Binary file not shown.
Before Width: | Height: | Size: 18 KiB |
Binary file not shown.
Before Width: | Height: | Size: 18 KiB |
@ -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<>();
|
||||||
|
Loading…
Reference in New Issue
Block a user