mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Delete event_data on website reset/delete.
This commit is contained in:
parent
594660f298
commit
6b0d6c0d1c
2 changed files with 6 additions and 0 deletions
|
|
@ -161,6 +161,9 @@ export async function deleteUser(
|
|||
|
||||
return prisma
|
||||
.transaction([
|
||||
client.eventData.deleteMany({
|
||||
where: { websiteId: { in: websiteIds } },
|
||||
}),
|
||||
client.websiteEvent.deleteMany({
|
||||
where: { websiteId: { in: websiteIds } },
|
||||
}),
|
||||
|
|
|
|||
|
|
@ -78,6 +78,9 @@ export async function deleteWebsite(
|
|||
const cloudMode = process.env.CLOUD_MODE;
|
||||
|
||||
return transaction([
|
||||
client.eventData.deleteMany({
|
||||
where: { websiteId },
|
||||
}),
|
||||
client.websiteEvent.deleteMany({
|
||||
where: { websiteId },
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue