Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ services:
restart: unless-stopped
environment:
- JENKINS_PORT=${JENKINS_PORT}
- TESTCONTAINERS_NETWORK=backend_backend_network
networks:
- 'backend_network'
healthcheck:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
public class ImageFileService {
private final FileUseCase fileUseCase;

@Value("${file.storage.path}")
private String baseFileStoragePath;

@Value("${app.domain}")
private String appDomain;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down