mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
fix user delete and Logo import
This commit is contained in:
parent
ce1120c3ff
commit
f11773ad3f
2 changed files with 3 additions and 3 deletions
|
|
@ -2,7 +2,7 @@ import { Row, Icon, Text, ThemeButton } from '@umami/react-zen';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import { LanguageButton } from '@/components/input/LanguageButton';
|
import { LanguageButton } from '@/components/input/LanguageButton';
|
||||||
import { PreferencesButton } from '@/components/input/PreferencesButton';
|
import { PreferencesButton } from '@/components/input/PreferencesButton';
|
||||||
import { Logo } from '@/components/icons';
|
import { LogoSvg } from '@/components/icons';
|
||||||
|
|
||||||
export function Header() {
|
export function Header() {
|
||||||
return (
|
return (
|
||||||
|
|
@ -10,7 +10,7 @@ export function Header() {
|
||||||
<Row gap>
|
<Row gap>
|
||||||
<Link href="https://umami.is" target="_blank">
|
<Link href="https://umami.is" target="_blank">
|
||||||
<Icon size="lg">
|
<Icon size="lg">
|
||||||
<Logo />
|
<LogoSvg />
|
||||||
</Icon>
|
</Icon>
|
||||||
<Text>umami</Text>
|
<Text>umami</Text>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,7 @@ export async function deleteUser(
|
||||||
|
|
||||||
const teams = await client.team.findMany({
|
const teams = await client.team.findMany({
|
||||||
where: {
|
where: {
|
||||||
teamUser: {
|
members: {
|
||||||
some: {
|
some: {
|
||||||
userId,
|
userId,
|
||||||
role: ROLES.teamOwner,
|
role: ROLES.teamOwner,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue