diff --git a/lib/prisma/feed.ts b/lib/prisma/feed.ts index afca977..c11b6a3 100644 --- a/lib/prisma/feed.ts +++ b/lib/prisma/feed.ts @@ -161,7 +161,7 @@ const sortedTagIds = Object.entries(tagCounts) .map(([tagId]) => tagId) const posts = await postgres.post.findMany({ - where: { tags: { some: { tagId: { in: sortedTagIds.slice(0, 5) } } } }, + where: { tags: { some: { tagId: { in: sortedTagIds } } } }, select: { id: true }, });