Skip to content

Commit

Permalink
HOT FIX : Add Title property in DetailView DTO
Browse files Browse the repository at this point in the history
  • Loading branch information
yummygyudon committed Nov 25, 2023
1 parent 4fdaa6c commit 9a81bc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
import com.fasterxml.jackson.annotation.JsonProperty;

public record ProgramDetailResponse (
@JsonProperty("title")
String title,
@JsonProperty("imageUrl")
String imageUrl,
@JsonProperty("content")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ public ProgramDetailResponse getProgramDetail(Long userId, Long programId) {
.orElseThrow(() -> new ApplyException(ApplyError.APPLY_NOT_FOUND));
boolean isApply = convertToIsApply(apply.getIsApply());
return new ProgramDetailResponse(
program.getTitle(),
program.getImageUrl(),
program.getContent(),
program.getOrganizationName(),
Expand Down

0 comments on commit 9a81bc8

Please sign in to comment.