Skip to content

Commit ea5c2ad

Browse files
Merge pull request #27 from prgrms-web-devcourse-final-project/feat/block/5
[Fix] "nickname", "@longin_id" 형식의 데이터 추가해서 응답하는 코드 추가
2 parents aa9723f + 3adb2ab commit ea5c2ad

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/java/org/dfbf/soundlink/domain/blocklist/dto/BlockRes.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ public record BlockRes(
66
Long userId,
77
Long blockedUserId,
88
String nickname,
9+
String tag,
910
Timestamp createdAt,
1011
Timestamp updatedAt
1112
) {

src/main/java/org/dfbf/soundlink/domain/blocklist/service/BlockListService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ public ResponseResult getBlockListByUserId(Long userId) {
9898
.map(block -> new BlockRes(
9999
block.getUser().getUserId(),
100100
block.getBlockedUser().getUserId(),
101-
"@" + block.getBlockedUser().getNickname(),
101+
block.getBlockedUser().getNickname(),
102+
("@" + block.getBlockedUser().getLoginId()),
102103
block.getCreatedAt(),
103104
block.getUpdatedAt()
104105
)).collect(Collectors.toList())

0 commit comments

Comments
 (0)