From ba89a864bb4548623ca1bfcfc9ab6eb7fe782603 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Wed, 16 Apr 2025 19:04:25 +0000 Subject: fix: Add includeContent to search endpoint and document it in the docs --- packages/trpc/routers/bookmarks.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'packages/trpc/routers') diff --git a/packages/trpc/routers/bookmarks.ts b/packages/trpc/routers/bookmarks.ts index a02fb691..9a1b6b0b 100644 --- a/packages/trpc/routers/bookmarks.ts +++ b/packages/trpc/routers/bookmarks.ts @@ -761,9 +761,7 @@ export const bookmarksAppRouter = router({ results.sort((a, b) => idToRank[b.id] - idToRank[a.id]); return { - bookmarks: results.map((b) => - toZodSchema(b, /* includeContent: */ false), - ), + bookmarks: results.map((b) => toZodSchema(b, input.includeContent)), nextCursor: resp.hits.length + resp.offset >= resp.estimatedTotalHits ? null -- cgit v1.2.3-70-g09d2