From 673a8553408778fbe303cb4db278358a1eead62a Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 22 Mar 2021 12:41:38 +0900 Subject: [PATCH] fix bug --- src/models/repositories/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/repositories/user.ts b/src/models/repositories/user.ts index 267e443cf..53c06f3f1 100644 --- a/src/models/repositories/user.ts +++ b/src/models/repositories/user.ts @@ -164,7 +164,7 @@ export class UserRepository extends Repository { const pins = opts.detail ? await UserNotePinings.createQueryBuilder('pin') .where('pin.userId = :userId', { userId: user.id }) .innerJoinAndSelect('pin.note', 'note') - .orderBy('id', 'DESC') + .orderBy('pin.id', 'DESC') .getMany() : []; const profile = opts.detail ? await UserProfiles.findOneOrFail(user.id) : null;