mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 07:07:17 +01:00
Update team remove button.
This commit is contained in:
parent
dc3818baaa
commit
288836d4a5
3 changed files with 15 additions and 40 deletions
|
|
@ -239,7 +239,7 @@ export async function resetWebsite(
|
|||
}
|
||||
|
||||
export async function deleteWebsite(
|
||||
websiteId,
|
||||
websiteId: string,
|
||||
): Promise<[Prisma.BatchPayload, Prisma.BatchPayload, Website]> {
|
||||
const { client, transaction } = prisma;
|
||||
const cloudMode = process.env.CLOUD_MODE;
|
||||
|
|
@ -254,11 +254,6 @@ export async function deleteWebsite(
|
|||
client.session.deleteMany({
|
||||
where: { websiteId },
|
||||
}),
|
||||
client.teamWebsite.deleteMany({
|
||||
where: {
|
||||
websiteId,
|
||||
},
|
||||
}),
|
||||
client.report.deleteMany({
|
||||
where: {
|
||||
websiteId,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue