We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09110e6 commit f135075Copy full SHA for f135075
1 file changed
lib/prisma/feed.ts
@@ -161,7 +161,7 @@ const sortedTagIds = Object.entries(tagCounts)
161
.map(([tagId]) => tagId)
162
163
const posts = await postgres.post.findMany({
164
- where: { tags: { some: { tagId: { in: sortedTagIds.slice(0, 5) } } } },
+ where: { tags: { some: { tagId: { in: sortedTagIds } } } },
165
select: { id: true },
166
});
167
0 commit comments