Skip to content

Commit

Permalink
chore(MeetingV2GetMeetingByIdResponseDto): Meeting 생성자 변경없이 하기 위해 모임 …
Browse files Browse the repository at this point in the history
…id 반환 방식을 변경
  • Loading branch information
mikekks committed Dec 12, 2024
1 parent 4989a49 commit 20b005d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import org.sopt.makers.crew.main.entity.meeting.Meeting;
import org.sopt.makers.crew.main.entity.meeting.enums.MeetingJoinablePart;
import org.sopt.makers.crew.main.entity.meeting.vo.ImageUrlVO;
import org.sopt.makers.crew.main.entity.user.User;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
Expand Down Expand Up @@ -140,7 +139,7 @@ public class MeetingV2GetMeetingByIdResponseDto {
@NotNull
private final List<ApplyWholeInfoDto> appliedInfo;

public static MeetingV2GetMeetingByIdResponseDto of(Meeting meeting, List<CoLeader> coLeaders,
public static MeetingV2GetMeetingByIdResponseDto of(Integer meetingId, Meeting meeting, List<CoLeader> coLeaders,
boolean isCoLeader, long approvedCount, Boolean isHost, Boolean isApply,
Boolean isApproved, MeetingCreatorDto meetingCreatorDto,
List<ApplyWholeInfoDto> appliedInfo, LocalDateTime now) {
Expand All @@ -151,7 +150,7 @@ public static MeetingV2GetMeetingByIdResponseDto of(Meeting meeting, List<CoLead
.map(coLeader -> MeetingV2CoLeaderResponseDto.of(coLeader.getUser()))
.toList();

return new MeetingV2GetMeetingByIdResponseDto(meeting.getId(), meeting.getUserId(), meeting.getTitle(),
return new MeetingV2GetMeetingByIdResponseDto(meetingId, meeting.getUserId(), meeting.getTitle(),
meeting.getCategory().getValue(), meeting.getImageURL(), meeting.getStartDate(), meeting.getEndDate(),
meeting.getCapacity(), meeting.getDesc(), meeting.getProcessDesc(), meeting.getmStartDate(),
meeting.getmEndDate(), meeting.getLeaderDesc(), meeting.getNote(),
Expand Down

0 comments on commit 20b005d

Please sign in to comment.