Skip to content

Commit 9c3699e

Browse files
authored
Merge pull request #83 from team-gogo/fix/stage-valid-problem
2 parents 39c3d94 + 73e4117 commit 9c3699e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/kotlin/gogo/gogostage/domain/stage/root/application/StageValidator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/main/kotlin/gogo/gogostage/domain/stage/root/presentation/StageController.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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> {

0 commit comments

Comments
 (0)