From 967fae142b119de82dd6603f0e56b7e88fbb8c58 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 267e443cff..53c06f3f16 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;