diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-04-16 19:04:25 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2025-04-16 23:50:17 +0000 |
| commit | ba89a864bb4548623ca1bfcfc9ab6eb7fe782603 (patch) | |
| tree | e3b8ddf9d418255f95c18bee76350d441fdd3081 /packages/trpc/routers | |
| parent | 5e0f4de1625957c6ce057ae272aa301fc459d31b (diff) | |
| download | karakeep-ba89a864bb4548623ca1bfcfc9ab6eb7fe782603.tar.zst | |
fix: Add includeContent to search endpoint and document it in the docs
Diffstat (limited to 'packages/trpc/routers')
| -rw-r--r-- | packages/trpc/routers/bookmarks.ts | 4 |
1 files changed, 1 insertions, 3 deletions
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 |
