Skip to content

Commit

Permalink
refactor: ♻️ 팔로우 리스트 최신순으로 반환하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
niamu01 committed Dec 27, 2023
1 parent efa1457 commit be9bd46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/follow/follow.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export class FollowService {
//target을 팔로우 하는 사람들
const follower: follow[] = await this.findAllAndLean({
filter: { followId: targetId },
sort: { _id: 'desc' },
});

const followerUserPreview: UserPreview[] = await Promise.all(
Expand Down Expand Up @@ -145,6 +146,7 @@ export class FollowService {
//target이 팔로우 하는 사람들
const following: follow[] = await this.findAllAndLean({
filter: { userId: targetId },
sort: { _id: 'desc' },
});

const followingUserPreview: UserPreview[] = await Promise.all(
Expand Down

0 comments on commit be9bd46

Please sign in to comment.