📈 Track cancel event

This commit is contained in:
Luke Vella 2025-07-09 11:45:31 +03:00
parent 20f7c6bfb7
commit ac75e690a8
No known key found for this signature in database
GPG key ID: 469CAD687F0D784C

View file

@ -45,6 +45,14 @@ export const cancelEventAction = authActionClient
revalidatePath("/", "layout");
ctx.posthog?.capture({
event: "cancel_event",
distinctId: ctx.user.id,
properties: {
event_id: parsedInput.eventId,
},
});
// notify attendees
const attendees = await prisma.scheduledEventInvite.findMany({
where: {