diff options
| author | MohamedBassem <me@mbassem.com> | 2025-04-08 03:56:19 -0700 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2025-04-08 03:56:19 -0700 |
| commit | 0b769c3532551e9d0e7077703e4ea861a1179c66 (patch) | |
| tree | 4bce655d22e2bc97ccb4504f1a84fce6dd133816 /packages/trpc/routers/bookmarks.ts | |
| parent | 3207264fc13c275d6dcfbd2628cc6b3974ceeaed (diff) | |
| download | karakeep-0b769c3532551e9d0e7077703e4ea861a1179c66.tar.zst | |
fix: Deprecate the updateBookmarkText trpc endpoint and replace it with updateBookmark
Diffstat (limited to 'packages/trpc/routers/bookmarks.ts')
| -rw-r--r-- | packages/trpc/routers/bookmarks.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/trpc/routers/bookmarks.ts b/packages/trpc/routers/bookmarks.ts index 9219adc6..5e6df4a5 100644 --- a/packages/trpc/routers/bookmarks.ts +++ b/packages/trpc/routers/bookmarks.ts @@ -473,7 +473,7 @@ export const bookmarksAppRouter = router({ .set({ text: input.text, }) - .where(eq(bookmarkLinks.id, input.bookmarkId)); + .where(eq(bookmarkTexts.id, input.bookmarkId)); if (result.changes == 0) { throw new TRPCError({ @@ -539,6 +539,7 @@ export const bookmarksAppRouter = router({ return updatedBookmark; }), + // DEPRECATED: use updateBookmark instead updateBookmarkText: authedProcedure .input( z.object({ |
