File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/kotlin/gogo/gogostage/domain/stage/root Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ class StageValidator(
6363 }
6464
6565 val isSchool = stage.schoolId == student.schoolId
66- if (isSchool) {
66+ if (isSchool. not () ) {
6767 throw StageException (" 해당 스테이지는 현재 소속 중인 학교의 스테이지가 아닙니다." , HttpStatus .BAD_REQUEST .value())
6868 }
6969 }
Original file line number Diff line number Diff line change @@ -22,15 +22,15 @@ class StageController(
2222 }
2323
2424 @PostMapping(" /official" )
25- fun createFast (
25+ fun createOfficial (
2626 @RequestBody @Valid dto : CreateOfficialStageDto ,
2727 ): ResponseEntity <Unit > {
2828 stageService.createOfficial(dto)
2929 return ResponseEntity .status(HttpStatus .CREATED ).build()
3030 }
3131
3232 @PostMapping(" /join/{stage_id}" )
33- fun createFast (
33+ fun join (
3434 @PathVariable(" stage_id" ) stageId : Long ,
3535 @RequestBody dto : StageJoinDto ,
3636 ): ResponseEntity <Unit > {
You can’t perform that action at this time.
0 commit comments