Update telemetry.ts
This commit is contained in:
1 parent
875e279def
commit
51b86b1d97
1 file changed
+2
-1
@@ -36,7 +36,8 @@ export function collectPageParameters(
|
||||
}
|
||||
|
||||
const reportUsage: EventHandler = async (event, { fetch }) => {
|
||||
if (event.eventType === "booking") {
|
||||
const ets = telemetryEventTypes;
|
||||
if ([ets.bookingConfirmed, ets.embedBookingConfirmed].includes(event.eventType)) {
|
||||
const key = process.env.CALCOM_LICENSE_KEY;
|
||||
const url = `${CONSOLE_URL}/api/deployments/usage?key=${key}&quantity=1`;
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user