revert: "feat: Populate gCal calendar cache via webhooks (#11928)"" (#17682)

This commit is contained in:
Omar López authored and GitHub committed 2024-11-18 19:48:33 +00:00
1 parent 50df22928b
commit 7c0ee9f186
38 files changed
+920 -240

No files matched your search

@@ -28,6 +28,8 @@ const CalendarSwitch = (props: ICalendarSwitchProps) => {
const body = {
integration: type,
externalId: externalId,
// new URLSearchParams does not accept numbers
credentialId: String(credentialId),
};
if (isOn) {
@@ -36,7 +38,7 @@ const CalendarSwitch = (props: ICalendarSwitchProps) => {
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({ ...body, credentialId }),
body: JSON.stringify(body),
});
if (!res.ok) {