Skip to content

Commit

Permalink
[#128] fix: 모집 마감 시, 활동 중으로 변경되도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dl-00-e8 committed May 18, 2024
1 parent b8283b7 commit ae906ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public ApplicationResponse<CategoryRes> getCategory(@PathVariable("post_id") Lon
@Operation(summary = "공고 마감 API", description = "내가 모집 중인 팀 페이지에서 공고 마감 버튼 클릭시")
@PatchMapping("/{post_id}/close")
public ApplicationResponse<Void> updatePostStatusToClose(@AuthenticationPrincipal PrincipalDetails principalDetails, @PathVariable("post_id") Long postId){
applyService.updatePostState(principalDetails.getMember(),postId, PostStatus.CLOSE);
applyService.updatePostState(principalDetails.getMember(),postId, PostStatus.ACTIVE);
return ApplicationResponse.ok();
}
//공고 취소 요청 api
Expand Down

0 comments on commit ae906ca

Please sign in to comment.