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/shared-react/hooks/bookmarks.ts | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'packages/shared-react') diff --git a/packages/shared-react/hooks/bookmarks.ts b/packages/shared-react/hooks/bookmarks.ts index 7339f6c2..e06c7841 100644 --- a/packages/shared-react/hooks/bookmarks.ts +++ b/packages/shared-react/hooks/bookmarks.ts @@ -84,21 +84,6 @@ export function useUpdateBookmark( }); } -export function useUpdateBookmarkText( - ...opts: Parameters -) { - const apiUtils = api.useUtils(); - return api.bookmarks.updateBookmarkText.useMutation({ - ...opts[0], - onSuccess: (res, req, meta) => { - apiUtils.bookmarks.getBookmarks.invalidate(); - apiUtils.bookmarks.searchBookmarks.invalidate(); - apiUtils.bookmarks.getBookmark.invalidate({ bookmarkId: req.bookmarkId }); - return opts[0]?.onSuccess?.(res, req, meta); - }, - }); -} - export function useSummarizeBookmark( ...opts: Parameters ) { -- cgit v1.2.3-70-g09d2