Update telemetry.ts

This commit is contained in:
zomars committed 2022-06-06 15:33:38 -06:00
1 parent 875e279def
commit 51b86b1d97
1 file changed
+2 -1
+2 -1
View File
@@ -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 {