Skip to content

Commit b2167a5

Browse files
committed
feat: 게시글 전체 조회 로직 일부 수정
1 parent 77e8074 commit b2167a5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/post/post.service.ts

-10
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,6 @@ export class PostService {
6161
.select(['post.id', 'post.content', 'post.createdAt'])
6262
.leftJoin('post.user', 'user')
6363
.addSelect(['user.id', 'user.nickname', 'user.profilePictureUrl'])
64-
.leftJoin(
65-
Matching,
66-
'matching',
67-
'((matching.requesterId = :currentUserId AND matching.targetId = user.id) OR (matching.targetId = :currentUserId AND matching.requesterId = user.id)) AND matching.status = :matchingStatus',
68-
{
69-
currentUserId,
70-
matchingStatus: 'activated', // 매칭 상태 필터링
71-
},
72-
)
73-
.addSelect(['matching.requestStatus AS post_isFriendRequestStatus']) // 요청 상태를 선택
7464
.leftJoinAndSelect(
7565
'post.postImages',
7666
'postImage',

0 commit comments

Comments
 (0)