feat: finish search feature

This commit is contained in:
Stevan Freeborn committed 2023-09-16 11:28:55 -05:00
1 parent e2161e62c3
commit 9ad0b51b29
6 files changed
+87 -20

No files matched your search

-1
View File
@@ -201,7 +201,6 @@ export const getPostsBySearchTerm = query({
.withSearchIndex('search_by_content', q =>
q.search('contentText', args.term)
)
.filter(q => q.eq(q.field('parentPostId'), undefined))
.paginate(args.paginationOpts);
const postsWithUser = await getPostsWithUsers({ ctx, posts: posts.page });