Skip to content

Commit

Permalink
Merge pull request #270 from Gongjakso/feat/portfolio
Browse files Browse the repository at this point in the history
refactor: portfolio 오탈자 수정
  • Loading branch information
jinnxyoung authored Oct 1, 2024
2 parents 8ee5a73 + a90cf7f commit 98ce903
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public ApplicationResponse<Void> updateExistPortfolio(@AuthenticationPrincipal P
@Operation(description = "포트폴리오 파일 및 링크 업로드 가져오기 API")
@GetMapping("/exist-portfolio/{portfolio_id}")
public ApplicationResponse<ExistPortfolioRes> findExistPortfolio(@AuthenticationPrincipal PrincipalDetails principalDetails, @PathVariable("portfolio_id") Long portfolioId, @RequestParam(name = "dataType") String dataType){
return ApplicationResponse.ok(portfolioService.findExistPorfolio(principalDetails.getMember(),portfolioId,dataType));
return ApplicationResponse.ok(portfolioService.findExistPortfolio(principalDetails.getMember(),portfolioId,dataType));
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public void updateExistPortfolio(Member member, Long id, MultipartFile file, Str
portfolioRepository.save(portfolio);
}

public ExistPortfolioRes findExistPorfolio(Member member, Long id, String dataType){
public ExistPortfolioRes findExistPortfolio(Member member, Long id, String dataType){
//Validation
Portfolio portfolio = portfolioRepository.findById(id).orElseThrow(()-> new ApplicationException(ErrorCode.NOT_FOUND_EXCEPTION));
if (!portfolio.getMember().getId().equals(member.getId()) && !teamRepository.equalsLeaderIdAndMember(portfolio, member)) {
Expand Down

0 comments on commit 98ce903

Please sign in to comment.