Skip to content

Commit

Permalink
CICD 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
kimh7537 committed Aug 22, 2024
1 parent 235bfc0 commit 8f204e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public ResponseEntity<ClubUpdateResponse> updateClub(


@GetMapping("/ranking/{sportsCategory}")
@Operation(summary = "랭킹 목록 조회", description = "랭킹 페이지로 들어가면 ALL TIME 기준의 랭킹 정보를 순위대로 얻을 수 있다.")
public ResponseEntity<List<ClubRankResponse>> getRanking(@PathVariable SportsCategory sportsCategory) {
List<ClubRankResponse> ranking = clubService.getRanking(sportsCategory);
return ResponseEntity.ok(ranking);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,8 @@ public ClubCreateResponse createClub(CustomOAuth2Member customOAuth2Member, Club

Club savedClub = clubRepository.save(club);

long clubCount = clubRepository.countBySportsCategory(club.getSportsCategory());
if (clubCount >= 5) {
updateClubMatchScore(savedClub.getClubId());
}

updateClubScore(club.getSportsCategory(), club.getClubId(), club.getMatchScore());

log.info("동아리 생성됨, clubId : {}", savedClub.getClubId());
return new ClubCreateResponse(savedClub.getClubId());
Expand Down

0 comments on commit 8f204e0

Please sign in to comment.