Skip to content

Scheduling infrastructure for absolutely everyone.

Calendar event changed to any for loose allowance

Syed Ali Shahbaz54353f99d139
diff --git a/lib/utils/sendPayload.ts b/lib/utils/sendPayload.ts
index 62cc3f96d29..925be7486a5 100644
--- a/lib/utils/sendPayload.ts
+++ b/lib/utils/sendPayload.ts
@@ -1,11 +1,11 @@
import { Webhook } from "@prisma/client";
import { compile } from "handlebars";
-import type { CalendarEvent } from "@calcom/types/Calendar";
+// import type { CalendarEvent } from "@calcom/types/Calendar"; Add this to make it strict, change data: any to CalendarEvent type
type ContentType = "application/json" | "application/x-www-form-urlencoded";
-function applyTemplate(template: string, data: CalendarEvent, contentType: ContentType) {
+function applyTemplate(template: string, data: any, contentType: ContentType) {
const compiled = compile(template)(data);
if (contentType === "application/json") {
return JSON.stringify(jsonParse(compiled));