Skip to content

Commit

Permalink
[FIX] 매칭 상태 변경 로직 수정 (#113)
Browse files Browse the repository at this point in the history
resolve #112
  • Loading branch information
Profile-exe authored Jul 25, 2024
1 parent e853fe1 commit 760f7b5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/java/econo/buddybridge/matching/entity/Matching.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,12 @@ public Matching(Post post, Member taker, Member giver, MatchingStatus matchingSt
public void updateMatching(MatchingStatus matchingStatus){
this.matchingStatus = matchingStatus;
switch (matchingStatus){
case PENDING:
case PENDING, FAILED:
post.changeStatus(PostStatus.RECRUITING);
break;
case DONE:
post.changeStatus(PostStatus.FINISHED);
break;
case FAILED:
post.changeStatus(PostStatus.RECRUITING);
break;
}
}
}

0 comments on commit 760f7b5

Please sign in to comment.