feat: finish search feature

This commit is contained in:
Stevan Freeborn
2023-09-16 11:28:55 -05:00
parent e2161e62c3
commit 9ad0b51b29
6 changed files with 87 additions and 20 deletions
-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 });