Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
fix : relations 수정 (#142)
Browse files Browse the repository at this point in the history
팔로우, 팔로워 리스트 조회 기능 에러 수정
  • Loading branch information
yewonahn authored Feb 11, 2024
2 parents 42a7e45 + 3703f1c commit cce2741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export class UserService {
try {
return await UserFollowingEntity.find({
where: { user: { id: userId } },
relations: ['followUser'],
relations: {followUser: {profileImage : true}},
});

} catch (error) {
Expand All @@ -166,7 +166,7 @@ export class UserService {
try {
return await UserFollowingEntity.find({
where: { followUser: { id: userId } },
relations: ['user'],
relations: {user: {profileImage : true}},
});

} catch (error) {
Expand Down

0 comments on commit cce2741

Please sign in to comment.