mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-23 19:27:25 +02:00
📈 Track cancel event
This commit is contained in:
parent
20f7c6bfb7
commit
ac75e690a8
1 changed files with 8 additions and 0 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue