Skip to content

Commit

Permalink
Merge pull request #155 from swm-nodriversomabus/BUS-202-MVP1-API-test
Browse files Browse the repository at this point in the history
feat(BE): 매칭 신청 상태 반환 BUS-202-MVP1-API-test
  • Loading branch information
Lemonade255 authored Oct 25, 2023
2 parents 0e1613a + a1d3077 commit 708c160
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public void processMatchingApplication(SaveMatchingApplicationDto matchingApplic
.userId(matchingApplicationDto.getUserId())
.matchingId(matchingApplicationDto.getMatchingId())
.build();

// Invalid input 거르기

if (matchingApplicationDto.getState() == ApplicationStateEnum.Approved) {
matchingApplicationUsecase.approveMatchingApplication(matchingApplicationDto);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ public String getUserStatus(Long matchingId) {
MatchingApplicationPK matchingApplicationPK = new MatchingApplicationPK(securityUser.getUserId(), matchingId);
Optional<MatchingApplicationEntity> statusData = matchingApplicationPort.getByMatchingApplicationPK(matchingApplicationPK);
if (statusData.isPresent()) {
return statusData.get().getState().toString();
String status = statusData.get().getState().toString();
return status.substring(status.indexOf('.') + 1, status.indexOf('('));
} else {
return "None";
}
Expand Down

0 comments on commit 708c160

Please sign in to comment.