Skip to content

Commit

Permalink
Merge branch 'fix/profile/sh' into develop/main
Browse files Browse the repository at this point in the history
  • Loading branch information
seohyun-lee committed Feb 18, 2024
2 parents 00c7417 + c10812f commit 7c66079
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ public class MatchingController {
@GetMapping("/match")
public ResponseEntity<?> getMatchingInfo() {
Member member = memberService.getCurrentMember();
// match 불가:
// 메이트 관계가 있는 경우 리다이렉트
// match 불가: 메이트 관계가 있는 경우
if (member.getIsRelationed())
return ResponseEntity.ok().header("Location", "/api/home").build();
return ResponseEntity.badRequest().header("Location", "/api/home").body("메이트를 맺은 상태이므로 매칭할 수 없습니다.");
// match 가능:
MatchingInputDto resDto = matchingService.getCurrentMatchingDto();
// 아직 매칭 X
Expand Down

0 comments on commit 7c66079

Please sign in to comment.