Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.blackcompany.eeos.calendar.application.model.CalendarModel;
import com.blackcompany.eeos.common.support.dto.AbstractResponseDto;
import com.blackcompany.eeos.common.utils.DateConverter;
import java.util.Locale;

public record CalendarResponse(
Long id, String title, String url, String type, Long startAt, Long endAt, String writer)
Expand All @@ -11,7 +12,7 @@ public record CalendarResponse(
public static CalendarResponse toResponse(CalendarModel model, String writerName) {
Long startAt = DateConverter.toMillis(model.getStartAt());
Long endAt = DateConverter.toMillis(model.getEndAt());
String type = model.getType().name();
String type = model.getType().name().toLowerCase(Locale.ROOT);

return new CalendarResponse(
model.getId(), model.getTitle(), model.getUrl(), type, startAt, endAt, writerName);
Expand Down