From a90cf7fe5f3ec59923588a8063fe6ac1f5bced40 Mon Sep 17 00:00:00 2001 From: jinnxyoung Date: Tue, 1 Oct 2024 18:32:34 +0900 Subject: [PATCH] =?UTF-8?q?[#269]=20refactor:=20portfolio=20=EC=98=A4?= =?UTF-8?q?=ED=83=88=EC=9E=90=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/domain/portfolio/controller/PortfolioController.java | 2 +- .../server/domain/portfolio/service/PortfolioService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gongjakso/server/domain/portfolio/controller/PortfolioController.java b/src/main/java/com/gongjakso/server/domain/portfolio/controller/PortfolioController.java index 92d47978..507e1647 100644 --- a/src/main/java/com/gongjakso/server/domain/portfolio/controller/PortfolioController.java +++ b/src/main/java/com/gongjakso/server/domain/portfolio/controller/PortfolioController.java @@ -87,7 +87,7 @@ public ApplicationResponse updateExistPortfolio(@AuthenticationPrincipal P @Operation(description = "포트폴리오 파일 및 링크 업로드 가져오기 API") @GetMapping("/exist-portfolio/{portfolio_id}") public ApplicationResponse 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)); } diff --git a/src/main/java/com/gongjakso/server/domain/portfolio/service/PortfolioService.java b/src/main/java/com/gongjakso/server/domain/portfolio/service/PortfolioService.java index c804779f..9aff5828 100644 --- a/src/main/java/com/gongjakso/server/domain/portfolio/service/PortfolioService.java +++ b/src/main/java/com/gongjakso/server/domain/portfolio/service/PortfolioService.java @@ -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)) {