From be9bd462438f6c03caef4e38ff6a9785ee234541 Mon Sep 17 00:00:00 2001 From: niamu01 Date: Mon, 25 Dec 2023 06:02:29 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20:recycle:=20=ED=8C=94=EB=A1=9C?= =?UTF-8?q?=EC=9A=B0=20=EB=A6=AC=EC=8A=A4=ED=8A=B8=20=EC=B5=9C=EC=8B=A0?= =?UTF-8?q?=EC=88=9C=EC=9C=BC=EB=A1=9C=20=EB=B0=98=ED=99=98=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - #406 --- app/src/follow/follow.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/follow/follow.service.ts b/app/src/follow/follow.service.ts index f1643f04..cda441a3 100644 --- a/app/src/follow/follow.service.ts +++ b/app/src/follow/follow.service.ts @@ -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( @@ -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(