aboutsummaryrefslogtreecommitdiffstats
path: root/packages/trpc
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2025-04-08 03:56:19 -0700
committerMohamedBassem <me@mbassem.com>2025-04-08 03:56:19 -0700
commit0b769c3532551e9d0e7077703e4ea861a1179c66 (patch)
tree4bce655d22e2bc97ccb4504f1a84fce6dd133816 /packages/trpc
parent3207264fc13c275d6dcfbd2628cc6b3974ceeaed (diff)
downloadkarakeep-0b769c3532551e9d0e7077703e4ea861a1179c66.tar.zst
fix: Deprecate the updateBookmarkText trpc endpoint and replace it with updateBookmark
Diffstat (limited to 'packages/trpc')
-rw-r--r--packages/trpc/routers/bookmarks.ts3
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({