Skip to content

Commit 3392d91

Browse files
authored
Merge pull request #113 from Renzzle/fix/community
fix: add description in GET puzzles API
2 parents 6c80450 + 844766d commit 3392d91

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/main/java/com/renzzle/backend/domain/puzzle/community/api/response/GetCommunityPuzzlesResponse.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ public record GetCommunityPuzzlesResponse(
88
String boardStatus,
99
long authorId,
1010
String authorName,
11+
String description,
1112
int depth,
1213
String winColor,
1314
int solvedCount,

src/main/java/com/renzzle/backend/domain/puzzle/community/service/CommunityService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public List<GetCommunityPuzzlesResponse> getCommunityPuzzleList(GetCommunityPuzz
7474
.boardStatus(puzzle.getBoardStatus())
7575
.authorId(puzzle.getUser().getId())
7676
.authorName(puzzle.getUser().getNickname())
77+
.description(puzzle.getDescription())
7778
.depth(puzzle.getDepth())
7879
.winColor(puzzle.getWinColor().getName())
7980
.solvedCount(puzzle.getSolvedCount())

0 commit comments

Comments
 (0)