Skip to content

Commit

Permalink
refactor - #122 가독성을 위한 네이밍 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kseysh committed Jun 18, 2024
1 parent 6c3eb8d commit 00425ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import sopt.org.hmh.domain.app.domain.exception.AppSuccess;
import sopt.org.hmh.domain.app.dto.request.ChallengeAppArrayRequest;
import sopt.org.hmh.domain.app.dto.request.AppRemoveRequest;
import sopt.org.hmh.domain.challenge.domain.Challenge;
import sopt.org.hmh.domain.challenge.domain.exception.ChallengeSuccess;
import sopt.org.hmh.domain.challenge.dto.request.ChallengeRequest;
import sopt.org.hmh.domain.challenge.dto.response.ChallengeResponse;
Expand Down Expand Up @@ -43,7 +42,7 @@ public ResponseEntity<BaseResponse<ChallengeResponse>> orderGetChallenge(@UserId
return ResponseEntity
.status(ChallengeSuccess.GET_CHALLENGE_SUCCESS.getHttpStatus())
.body(BaseResponse.success(ChallengeSuccess.GET_CHALLENGE_SUCCESS,
challengeFacade.getChallenge(userId)));
challengeFacade.getCurrentChallengeInfo(userId)));
}

@GetMapping("/home")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ private void addAppsIfPreviousChallengeExist(String os, Optional<Long> previousC
}

@Transactional(readOnly = true)
public ChallengeResponse getChallenge(Long userId) {
public ChallengeResponse getCurrentChallengeInfo(Long userId) {
Challenge challenge = this.findCurrentChallengeByUserId(userId);

return ChallengeResponse.builder()
Expand Down

0 comments on commit 00425ac

Please sign in to comment.