Skip to content

Commit

Permalink
[feature/Inhabas#298] 동아리활동 단일조회 writerID 추가
Browse files Browse the repository at this point in the history
[feature/Inhabas#298]  동아리활동 단일조회 writerID 추가
  • Loading branch information
whitem4rk authored May 14, 2024
2 parents 7b05ac9 + 59315a8 commit a42b4a9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.inhabas.api.domain.club.usecase;

import java.util.ArrayList;
import java.util.List;

import lombok.RequiredArgsConstructor;
Expand Down Expand Up @@ -41,8 +40,6 @@ public class ClubActivityServiceImpl implements ClubActivityService {
@Override
@Transactional(readOnly = true)
public List<ClubActivityDto> getClubActivities(String search) {
List<ClubActivityDto> clubActivityList = new ArrayList<>();

return clubActivityRepository.findAllAndSearch(search);
}

Expand Down Expand Up @@ -88,6 +85,7 @@ public ClubActivityDetailDto getClubActivity(Long boardId) {
.id(clubActivity.getId())
.title(clubActivity.getTitle())
.content(clubActivity.getContent())
.writerId(clubActivity.getWriter().getId())
.writerName(clubActivity.getWriter().getName())
.dateCreated(clubActivity.getDateCreated())
.dateUpdated(clubActivity.getDateUpdated())
Expand Down

0 comments on commit a42b4a9

Please sign in to comment.