Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix: Incorrect counts for tags in the AllTags page. Fixes #78

MohamedBassem5ef2efeff371
diff --git a/packages/trpc/routers/tags.ts b/packages/trpc/routers/tags.ts
index e84f52ac..ec633603 100644
--- a/packages/trpc/routers/tags.ts
+++ b/packages/trpc/routers/tags.ts
@@ -182,8 +182,8 @@ export const tagsAppRouter = router({
},
};
}
- acc[row.id].count++;
- acc[row.id].countAttachedBy[row.attachedBy]!++;
+ acc[row.id].count += row.count;
+ acc[row.id].countAttachedBy[row.attachedBy]! += row.count;
return acc;
},
{},