Skip to content

Commit 6f27e06

Browse files
committed
postLikesCount 이름 수정
1 parent 31f053a commit 6f27e06

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/post-like/dtos/post-like.response.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ export class PostLikeResponseDto {
1717
example: 1,
1818
description: '좋아요 개수',
1919
})
20-
postLikeCount: number;
20+
postLikesCount: number;
2121
}

src/post-like/post-like.service.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class PostLikeService {
102102
return {
103103
id: existingLike[0].post.id,
104104
isPostLike: existingLike[0].status === 'activated',
105-
postLikeCount:
105+
postLikesCount:
106106
existingLike[0].status === 'activated'
107107
? likeData.length + 1
108108
: likeData.length - 1,
@@ -118,7 +118,7 @@ export class PostLikeService {
118118
return {
119119
id: newLike.post.id,
120120
isPostLike: newLike.status === 'activated',
121-
postLikeCount: likeData.length + 1,
121+
postLikesCount: likeData.length + 1,
122122
};
123123
}
124124
}

0 commit comments

Comments
 (0)