Skip to content

Commit

Permalink
fix(#111): 공지사항 날짜 조회 오류 수정
Browse files Browse the repository at this point in the history
- 공지사항 전체 조회 시 생성 날짜가 수정 날짜로 잘못 표기되는 것을 수정했어요.
- 공지사항 조회 시 수정 날짜도 조회할 수 있도록 했어요.
  • Loading branch information
cabbage16 committed Aug 7, 2024
1 parent fbc70d0 commit 4af15ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
import com.bamdoliro.maru.domain.user.domain.User;
import com.bamdoliro.maru.infrastructure.s3.dto.response.UrlResponse;
import com.bamdoliro.maru.presentation.form.dto.request.PassOrFailFormListRequest;
import com.bamdoliro.maru.presentation.form.dto.request.SubmitFinalFormRequest;
import com.bamdoliro.maru.presentation.form.dto.request.SubmitFormRequest;
import com.bamdoliro.maru.presentation.form.dto.request.UpdateFormRequest;
import com.bamdoliro.maru.presentation.form.dto.response.FormResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ public class NoticeResponse {
private final String content;
private final String fileUrl;
private final LocalDateTime createdAt;
private final LocalDateTime updatedAt;

public NoticeResponse(Notice notice, String fileUrl) {
this.title = notice.getTitle();
this.content = notice.getContent();
this.fileUrl = fileUrl;
this.createdAt = notice.getCreatedAt();
this.updatedAt = notice.getUpdatedAt();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public class NoticeSimpleResponse {
public NoticeSimpleResponse(Notice notice) {
this.id = notice.getId();
this.title = notice.getTitle();
this.createdAt = notice.getUpdatedAt();
this.createdAt = notice.getCreatedAt();
}
}

0 comments on commit 4af15ff

Please sign in to comment.