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.

fix user delete and Logo import

Francis Caof11773ad3faf
diff --git a/src/app/share/[...shareId]/Header.tsx b/src/app/share/[...shareId]/Header.tsx
index 88da5bec6..270ee511c 100644
--- a/src/app/share/[...shareId]/Header.tsx
+++ b/src/app/share/[...shareId]/Header.tsx
@@ -2,7 +2,7 @@ import { Row, Icon, Text, ThemeButton } from '@umami/react-zen';
import Link from 'next/link';
import { LanguageButton } from '@/components/input/LanguageButton';
import { PreferencesButton } from '@/components/input/PreferencesButton';
-import { Logo } from '@/components/icons';
+import { LogoSvg } from '@/components/icons';
export function Header() {
return (
@@ -10,7 +10,7 @@ export function Header() {
<Row gap>
<Link href="https://umami.is" target="_blank">
<Icon size="lg">
- <Logo />
+ <LogoSvg />
</Icon>
<Text>umami</Text>
</Link>
diff --git a/src/queries/prisma/user.ts b/src/queries/prisma/user.ts
index d56c5747d..a1360efe2 100644
--- a/src/queries/prisma/user.ts
+++ b/src/queries/prisma/user.ts
@@ -136,7 +136,7 @@ export async function deleteUser(
const teams = await client.team.findMany({
where: {
- teamUser: {
+ members: {
some: {
userId,
role: ROLES.teamOwner,