From 0b769c3532551e9d0e7077703e4ea861a1179c66 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Tue, 8 Apr 2025 03:56:19 -0700 Subject: fix: Deprecate the updateBookmarkText trpc endpoint and replace it with updateBookmark --- packages/trpc/routers/bookmarks.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/trpc') 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({ -- cgit v1.2.3-70-g09d2