Skip to content

Commit

Permalink
refactor: 메서드명을 updateXXX로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
wonyangs committed Dec 16, 2024
1 parent acd35a4 commit 1e12e7e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public ProblemDetailResponseDto updateHold(final UUID problemId,
Problem problem = problemReadService.findProblemById(problemId);
QueryProblem queryProblem = problemReadService.findQueryProblemById(problemId);

problem.setHoldInfo(hold.getId());
queryProblem.setHoldInfo(hold.getId(), hold.getColorName(), hold.getColorCode());
problem.updateHoldInfo(hold.getId());
queryProblem.updateHoldInfo(hold.getId(), hold.getColorName(), hold.getColorCode());

return ProblemDetailResponseDto.of(queryProblem);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public void setThumbnailInfo(final Long thumbnailSolutionId, final String imageU
this.imageSource = imageSource;
}

public void setHoldInfo(final Long holdId) {
public void updateHoldInfo(final Long holdId) {
this.holdId = holdId;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void setThumbnailInfo(final Long thumbnailSolutionId, final String imageU
this.imageSource = imageSource;
}

public void setHoldInfo(final Long holdId, final String holdColorName, final String holdColorCode) {
public void updateHoldInfo(final Long holdId, final String holdColorName, final String holdColorCode) {
this.holdId = holdId;
this.holdColorName = holdColorName;
this.holdColorCode = holdColorCode;
Expand Down

0 comments on commit 1e12e7e

Please sign in to comment.