From d8c7250cf2b3730f4f3264cd5a04afa96fc1377e Mon Sep 17 00:00:00 2001 From: Seth Raphael Date: Tue, 27 Jan 2026 09:15:44 -0800 Subject: [PATCH] fix(comments): stop updating skills.updatedAt on comment add/remove Comments are not content changes, so they shouldn't invalidate skill list queries that depend on updatedAt. This reduces query invalidation when users add or remove comments. Co-Authored-By: Claude Opus 4.5 --- convex/comments.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/convex/comments.ts b/convex/comments.ts index 42791bf..78ed9ff 100644 --- a/convex/comments.ts +++ b/convex/comments.ts @@ -44,7 +44,6 @@ export const add = mutation({ await ctx.db.patch(skill._id, { stats: { ...skill.stats, comments: skill.stats.comments + 1 }, - updatedAt: Date.now(), }) }, }) @@ -71,7 +70,6 @@ export const remove = mutation({ if (skill) { await ctx.db.patch(skill._id, { stats: { ...skill.stats, comments: Math.max(0, skill.stats.comments - 1) }, - updatedAt: Date.now(), }) }