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.

only get non-deleted teams

Francis Caob885f57f40db
diff --git a/src/queries/admin/team.ts b/src/queries/admin/team.ts
index 225d57c4c..74b877de1 100644
--- a/src/queries/admin/team.ts
+++ b/src/queries/admin/team.ts
@@ -46,6 +46,7 @@ export async function getUserTeams(userId: string, filters: TeamSearchFilter = {
return getTeams(
{
where: {
+ deletedAt: null,
teamUser: {
some: { userId },
},