From ad43f4f037d26fedc2725ca02603a831a1e5257c Mon Sep 17 00:00:00 2001 From: SinnoLn Date: Tue, 1 Jul 2025 14:26:56 +0900 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=EC=98=A4=EB=A5=98=20=EB=AC=B8?= =?UTF-8?q?=EA=B5=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../clubArchive/application/service/PicturePostService.java | 4 +--- .../board/common/application/service/BasePostService.java | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/org/nova/backend/board/clubArchive/application/service/PicturePostService.java b/src/main/java/org/nova/backend/board/clubArchive/application/service/PicturePostService.java index 29112a8..af0fb4d 100644 --- a/src/main/java/org/nova/backend/board/clubArchive/application/service/PicturePostService.java +++ b/src/main/java/org/nova/backend/board/clubArchive/application/service/PicturePostService.java @@ -182,13 +182,11 @@ public PicturePostDetailResponse getPostById( UUID boardId, UUID postId ) { - UUID memberId = securityUtil.getOptionalCurrentMemberId() - .orElseThrow(() -> new UnauthorizedException("접근 권한이 없습니다.")); - basePostPersistencePort.increaseViewCount(postId); Post post = basePostPersistencePort.findByBoardIdAndPostId(boardId, postId) .orElseThrow(() -> new BoardDomainException("게시글을 찾을 수 없습니다.")); + UUID memberId = securityUtil.getOptionalCurrentMemberId().orElse(null); boolean isLiked = (memberId != null) && postLikePersistencePort.findByPostIdAndMemberId(postId, memberId).isPresent(); return picturePostMapper.toDetailResponse(post, isLiked); diff --git a/src/main/java/org/nova/backend/board/common/application/service/BasePostService.java b/src/main/java/org/nova/backend/board/common/application/service/BasePostService.java index 28a1069..9bfa3d8 100644 --- a/src/main/java/org/nova/backend/board/common/application/service/BasePostService.java +++ b/src/main/java/org/nova/backend/board/common/application/service/BasePostService.java @@ -219,7 +219,6 @@ public BasePostDetailResponse getPostById( UUID boardId, UUID postId ) { - basePostPersistencePort.increaseViewCount(postId); Post post = basePostPersistencePort.findByBoardIdAndPostId(boardId, postId) .orElseThrow(() -> new BoardDomainException(BoardErrorMessages.POST_NOT_FOUND)); From 700c5727b1217fe5cbdaeef2ca653ad04c2e6cee Mon Sep 17 00:00:00 2001 From: SinnoLn Date: Tue, 1 Jul 2025 14:48:06 +0900 Subject: [PATCH 2/3] =?UTF-8?q?refactor:=20=EC=95=88=EC=93=B0=EB=8A=94=20@?= =?UTF-8?q?Value=20=EC=82=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../clubArchive/application/service/ImageFileService.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/org/nova/backend/board/clubArchive/application/service/ImageFileService.java b/src/main/java/org/nova/backend/board/clubArchive/application/service/ImageFileService.java index 9dafbd8..146bc67 100644 --- a/src/main/java/org/nova/backend/board/clubArchive/application/service/ImageFileService.java +++ b/src/main/java/org/nova/backend/board/clubArchive/application/service/ImageFileService.java @@ -21,9 +21,6 @@ public class ImageFileService { private final FileUseCase fileUseCase; - @Value("${file.storage.path}") - private String baseFileStoragePath; - @Value("${app.domain}") private String appDomain; From fe83d332909989384108f813f7005612165e75bb Mon Sep 17 00:00:00 2001 From: SinnoLn Date: Tue, 1 Jul 2025 15:16:53 +0900 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20testContainer=20=EB=84=A4=ED=8A=B8?= =?UTF-8?q?=EC=9B=8C=ED=81=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compose.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/compose.yaml b/compose.yaml index 2b525da..00cee94 100644 --- a/compose.yaml +++ b/compose.yaml @@ -14,6 +14,7 @@ services: restart: unless-stopped environment: - JENKINS_PORT=${JENKINS_PORT} + - TESTCONTAINERS_NETWORK=backend_backend_network networks: - 'backend_network' healthcheck: