Delete event_data on website reset

This commit is contained in:
Francis Cao 2023-05-29 21:19:53 -07:00
parent e9b0d3f796
commit 0d567ebe60

View File

@ -50,6 +50,9 @@ export async function resetWebsite(
const { client, transaction } = prisma;
return transaction([
client.eventData.deleteMany({
where: { websiteId },
}),
client.websiteEvent.deleteMany({
where: { websiteId },
}),