From 7ee4385debc1d02ee666439d4805b321d5a65781 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 28 Mar 2020 22:04:23 +0900 Subject: [PATCH] Fix bug --- src/server/api/endpoints/i/apps.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/api/endpoints/i/apps.ts b/src/server/api/endpoints/i/apps.ts index 38299cd0dc..dc74123ce3 100644 --- a/src/server/api/endpoints/i/apps.ts +++ b/src/server/api/endpoints/i/apps.ts @@ -20,7 +20,8 @@ export const meta = { }; export default define(meta, async (ps, user) => { - const query = AccessTokens.createQueryBuilder('token'); + const query = AccessTokens.createQueryBuilder('token') + .where('token.userId = :userId', { userId: user.id }); switch (ps.sort) { case '+createdAt': query.orderBy('token.createdAt', 'DESC'); break;