Delete event_data on website reset

This commit is contained in:
Francis Cao committed 2023-05-29 21:19:53 -07:00
1 parent e9b0d3f796
commit 0d567ebe60
1 file changed
+3
+3
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 },
}),