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; }, {},