From 5ef2efeff371c5720df9acd3084cc369da6053a9 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Wed, 3 Apr 2024 16:17:23 +0100 Subject: fix: Incorrect counts for tags in the AllTags page. Fixes #78 --- packages/trpc/routers/tags.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }, {}, -- cgit v1.2.3-70-g09d2