Skip to content

Commit f135075

Browse files
committed
Refactor tag filtering in feed.ts
1 parent 09110e6 commit f135075

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/prisma/feed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ const sortedTagIds = Object.entries(tagCounts)
161161
.map(([tagId]) => tagId)
162162

163163
const posts = await postgres.post.findMany({
164-
where: { tags: { some: { tagId: { in: sortedTagIds.slice(0, 5) } } } },
164+
where: { tags: { some: { tagId: { in: sortedTagIds } } } },
165165
select: { id: true },
166166
});
167167

0 commit comments

Comments
 (0)