mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Delete event_data on website reset
This commit is contained in:
parent
e9b0d3f796
commit
0d567ebe60
@ -50,6 +50,9 @@ export async function resetWebsite(
|
|||||||
const { client, transaction } = prisma;
|
const { client, transaction } = prisma;
|
||||||
|
|
||||||
return transaction([
|
return transaction([
|
||||||
|
client.eventData.deleteMany({
|
||||||
|
where: { websiteId },
|
||||||
|
}),
|
||||||
client.websiteEvent.deleteMany({
|
client.websiteEvent.deleteMany({
|
||||||
where: { websiteId },
|
where: { websiteId },
|
||||||
}),
|
}),
|
||||||
|
Loading…
Reference in New Issue
Block a user