Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Fixed team counts.

Mike Caobd87f287e95b
diff --git a/src/queries/admin/team.ts b/src/queries/admin/team.ts
index 4af1dc972..08d16909e 100644
--- a/src/queries/admin/team.ts
+++ b/src/queries/admin/team.ts
@@ -169,7 +169,16 @@ export async function getTeamsByUserId(
},
},
_count: {
- select: { website: true, teamUser: true },
+ select: {
+ website: {
+ where: { deletedAt: null },
+ },
+ teamUser: {
+ where: {
+ user: { deletedAt: null },
+ },
+ },
+ },
},
},
},