From f11773ad3fafaf7327c590fdaff3d73f51ea3e49 Mon Sep 17 00:00:00 2001 From: Francis Cao Date: Wed, 24 Sep 2025 16:44:58 -0700 Subject: [PATCH] fix user delete and Logo import --- src/app/share/[...shareId]/Header.tsx | 4 ++-- src/queries/prisma/user.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/share/[...shareId]/Header.tsx b/src/app/share/[...shareId]/Header.tsx index 88da5bec..270ee511 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() { - + umami diff --git a/src/queries/prisma/user.ts b/src/queries/prisma/user.ts index d56c5747..a1360efe 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,