Delete event_data on website reset
This commit is contained in:
1 parent
e9b0d3f796
commit
0d567ebe60
1 file changed
+3
@@ -50,6 +50,9 @@ export async function resetWebsite(
|
||||
const { client, transaction } = prisma;
|
||||
|
||||
return transaction([
|
||||
client.eventData.deleteMany({
|
||||
where: { websiteId },
|
||||
}),
|
||||
client.websiteEvent.deleteMany({
|
||||
where: { websiteId },
|
||||
}),
|
||||
|
||||
Reference in new issue
Block a user