Delete event_data on website reset
This commit is contained in:
@@ -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 },
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user