A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
fix: Fix deleting tags broken due to wrong column name
MohamedBassemfb63f55e9d86
diff --git a/packages/trpc/routers/tags.ts b/packages/trpc/routers/tags.tsindex e76a09ec..a5d93213 100644--- a/packages/trpc/routers/tags.ts+++ b/packages/trpc/routers/tags.ts@@ -107,7 +107,13 @@ export const tagsAppRouter = router({bookmarkId: tagsOnBookmarks.bookmarkId,}).from(tagsOnBookmarks)- .where(conditionFromInput(input, ctx.user.id));+ .where(+ and(+ eq(tagsOnBookmarks.tagId, input.tagId),+ // Tag ownership is checked in the ensureTagOwnership middleware+ // eq(bookmarkTags.userId, ctx.user.id),+ ),+ );const res = await ctx.db.delete(bookmarkTags)