A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
feat: Update the last modifiedAt timestamp when tags of the bookmark change
Mohamed Bassem7d39d698e10c
diff --git a/packages/trpc/routers/bookmarks.ts b/packages/trpc/routers/bookmarks.tsindex 4bf32a08..817ceef3 100644--- a/packages/trpc/routers/bookmarks.ts+++ b/packages/trpc/routers/bookmarks.ts@@ -1025,6 +1025,15 @@ export const bookmarksAppRouter = router({})),).onConflictDoNothing();+ await tx+ .update(bookmarks)+ .set({ modifiedAt: new Date() })+ .where(+ and(+ eq(bookmarks.id, input.bookmarkId),+ eq(bookmarks.userId, ctx.user.id),+ ),+ );await triggerSearchReindex(input.bookmarkId);await triggerWebhook(input.bookmarkId, "edited");