mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
Delete event_data on website reset/delete.
This commit is contained in:
parent
594660f298
commit
6b0d6c0d1c
@ -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…
Reference in New Issue
Block a user