Skip to content

Commit

Permalink
[Fix] status삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
wonie committed Dec 31, 2024
1 parent f05c901 commit 5376c23
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ public PublicScheduleAdminUpdateResDto updatePublicSchedule(
publicScheduleAdminUpdateReqDto.getEventTag(), publicScheduleAdminUpdateReqDto.getJobTag(),
publicScheduleAdminUpdateReqDto.getTechTag(), publicScheduleAdminUpdateReqDto.getTitle(),
publicScheduleAdminUpdateReqDto.getContent(), publicScheduleAdminUpdateReqDto.getLink(),
publicScheduleAdminUpdateReqDto.getStartTime(), publicScheduleAdminUpdateReqDto.getEndTime(),
publicScheduleAdminUpdateReqDto.getStatus());
publicScheduleAdminUpdateReqDto.getStartTime(), publicScheduleAdminUpdateReqDto.getEndTime());

return PublicScheduleAdminUpdateResDto.toDto(publicSchedule);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import gg.data.calendar.type.DetailClassification;
import gg.data.calendar.type.EventTag;
import gg.data.calendar.type.JobTag;
import gg.data.calendar.type.ScheduleStatus;
import gg.data.calendar.type.TechTag;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
Expand Down Expand Up @@ -47,5 +46,4 @@ public class PublicScheduleUpdateReqDto {
@NotNull
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
private LocalDateTime endTime;
private ScheduleStatus status;
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public PublicSchedule updatePublicSchedule(Long scheduleId, PublicScheduleUpdate
checkAuthor(req.getAuthor(), user);
validateTimeRange(req.getStartTime(), req.getEndTime());
existingSchedule.update(req.getClassification(), req.getEventTag(), req.getJobTag(), req.getTechTag(),
req.getTitle(), req.getContent(), req.getLink(), req.getStartTime(), req.getEndTime(), req.getStatus());
req.getTitle(), req.getContent(), req.getLink(), req.getStartTime(), req.getEndTime());
return existingSchedule;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ void updatePublicScheduleSuccess() throws Exception {
.link("http://updated.com")
.startTime(LocalDateTime.now())
.endTime(LocalDateTime.now().plusDays(2))
.status(ScheduleStatus.ACTIVATE)
.build();

// when
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ public void update(EventTag eventTag, JobTag jobTag, TechTag techTag, String tit
this.alarm = alarm;
this.groupId = groupId;
this.publicSchedule.update(publicSchedule.getClassification(), eventTag, jobTag, techTag, title, content, link,
startTime, endTime, status);
startTime, endTime);
}
}
4 changes: 1 addition & 3 deletions gg-data/src/main/java/gg/data/calendar/PublicSchedule.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ private PublicSchedule(DetailClassification classification, EventTag eventTag, J
}

public void update(DetailClassification classification, EventTag eventTag, JobTag jobTag,
TechTag techTag, String title, String content, String link, LocalDateTime startTime, LocalDateTime endTime,
ScheduleStatus status) {
TechTag techTag, String title, String content, String link, LocalDateTime startTime, LocalDateTime endTime) {
this.classification = classification;
this.eventTag = eventTag;
this.jobTag = jobTag;
Expand All @@ -98,7 +97,6 @@ public void update(DetailClassification classification, EventTag eventTag, JobTa
this.link = link;
this.startTime = startTime;
this.endTime = endTime;
this.status = status;
}

public void delete() {
Expand Down

0 comments on commit 5376c23

Please sign in to comment.