Skip to content

Commit

Permalink
fix : likeStatus 리턴값 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
seungueonn committed Nov 26, 2023
1 parent e38aff8 commit 7b370cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ public class CommunityRes {
private String contentsTitle;
private String contentsUrl;

private String likeStatus;
private Boolean likeStatus;

public CommunityRes(Long id, String talk, LocalDateTime date, String writerId,
String topic, String issue, String keyword, Long heartsNum, Long commentsNum,Long contentsId, String likeStatus) {
String topic, String issue, String keyword, Long heartsNum, Long commentsNum,Long contentsId, Boolean likeStatus) {
this.id = id;
this.communityText = talk;
this.date = date.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public Optional<List<CommunityRes>> findAllCommunityByTopic(String memberId,Stri
community.hearts.size().longValue(),
community.comments.size().longValue(),
community.contentsId,
memberHeartExists.stringValue()
memberHeartExists

))
.from(community)
Expand Down Expand Up @@ -86,7 +86,7 @@ public Optional<List<CommunityRes>> findAllCommunity(String memberId) {
community.hearts.size().longValue(),
community.comments.size().longValue(),
community.contentsId,
memberHeartExists.stringValue()
memberHeartExists
))
.from(community)
.orderBy(community.createdAt.desc())
Expand Down Expand Up @@ -118,7 +118,7 @@ public Optional<CommunityRes> findCommunity(String memberId,Long communityId) {
community.hearts.size().longValue(),
community.comments.size().longValue(),
community.contentsId,
memberHeartExists.stringValue()
memberHeartExists
))
.from(community)
.where(community.id.eq(communityId))
Expand Down Expand Up @@ -156,7 +156,7 @@ public Optional<List<CommunityRes>> findCommunityTop5(String memberId,CommunityO
community.hearts.size().longValue(),
community.comments.size().longValue(),
community.contentsId,
memberHeartExists.stringValue()
memberHeartExists
))
.from(community)
.where(
Expand Down Expand Up @@ -199,7 +199,7 @@ public Optional<List<CommunityRes>> findCommunityByMyHearts(String memberId) {
community.hearts.size().longValue(),
community.comments.size().longValue(),
community.contentsId,
memberHeartExists.stringValue()
memberHeartExists
))
.from(community)
.where(community.in(heartsQuery))
Expand Down Expand Up @@ -248,7 +248,7 @@ public Optional<List<CommunityRes>> findCommunityByMyId(String memberId) {
community.hearts.size().longValue(),
community.comments.size().longValue(),
community.contentsId,
memberHeartExists.stringValue()
memberHeartExists
))
.from(community)
.where(community.writerId.eq(memberId))
Expand Down Expand Up @@ -278,7 +278,7 @@ public Optional<List<CommunityRes>> getSearchCommunity (String memberId, Communi
community.hearts.size().longValue(),
community.comments.size().longValue(),
community.contentsId,
memberHeartExists.stringValue()
memberHeartExists
))
.from(community)
.where(
Expand Down

0 comments on commit 7b370cb

Please sign in to comment.