From 663b8864c1f7f285aff50474063853738bbdf90d Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 15 Apr 2019 12:03:00 +0900 Subject: [PATCH] Fix bug --- src/server/api/endpoints/notes/featured.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/api/endpoints/notes/featured.ts b/src/server/api/endpoints/notes/featured.ts index 6a76fb8bc..fa9ae39e3 100644 --- a/src/server/api/endpoints/notes/featured.ts +++ b/src/server/api/endpoints/notes/featured.ts @@ -35,6 +35,7 @@ export default define(meta, async (ps, user) => { const day = 1000 * 60 * 60 * 24 * 3; // 3日前まで const query = Notes.createQueryBuilder('note') + .addSelect('note.score') .where('note.userHost IS NULL') .andWhere(`note.createdAt > :date`, { date: new Date(Date.now() - day) }) .andWhere(`note.visibility = 'public'`)