From 7c236b8b8767d50324802611212963fe8670a8e5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 15 Apr 2019 13:11:17 +0900 Subject: [PATCH] Fix bug --- src/server/api/endpoints/hashtags/search.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/api/endpoints/hashtags/search.ts b/src/server/api/endpoints/hashtags/search.ts index 6a9a2df6e..802f17799 100644 --- a/src/server/api/endpoints/hashtags/search.ts +++ b/src/server/api/endpoints/hashtags/search.ts @@ -48,6 +48,7 @@ export default define(meta, async (ps) => { const hashtags = await Hashtags.createQueryBuilder('tag') .where('tag.name like :q', { q: ps.query.toLowerCase() + '%' }) .orderBy('tag.count', 'DESC') + .groupBy('tag.id') .take(ps.limit!) .skip(ps.offset) .getMany();