mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-25 20:27:44 +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");
|
revalidatePath("/", "layout");
|
||||||
|
|
||||||
|
ctx.posthog?.capture({
|
||||||
|
event: "cancel_event",
|
||||||
|
distinctId: ctx.user.id,
|
||||||
|
properties: {
|
||||||
|
event_id: parsedInput.eventId,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
// notify attendees
|
// notify attendees
|
||||||
const attendees = await prisma.scheduledEventInvite.findMany({
|
const attendees = await prisma.scheduledEventInvite.findMany({
|
||||||
where: {
|
where: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue