diff --git a/pages/integrations/index.tsx b/pages/integrations/index.tsx index 0cb1192787..c74342207d 100644 --- a/pages/integrations/index.tsx +++ b/pages/integrations/index.tsx @@ -43,7 +43,7 @@ function WebhookListItem(props: { webhook: TWebhook; onEditWebhook: () => void } const utils = trpc.useContext(); const deleteWebhook = trpc.useMutation("viewer.webhook.delete", { async onSuccess() { - await utils.invalidateQueries(["viewer.webhhook.list"]); + await utils.invalidateQueries(["viewer.webhook.list"]); }, }); diff --git a/server/routers/viewer.tsx b/server/routers/viewer.tsx index 89244d5512..17da551900 100644 --- a/server/routers/viewer.tsx +++ b/server/routers/viewer.tsx @@ -344,12 +344,6 @@ const loggedInViewerRouter = createProtectedRouter() const payment = integrations.flatMap((item) => (item.variant === "payment" ? [item] : [])); const calendar = integrations.flatMap((item) => (item.variant === "calendar" ? [item] : [])); - // get user's credentials + their connected integrations - const calendarCredentials = getCalendarCredentials(user.credentials, user.id); - - // get all the connected integrations' calendars (from third party) - const connectedCalendars = await getConnectedCalendars(calendarCredentials, user.selectedCalendars); - return { conferencing: { items: conferencing, @@ -363,7 +357,6 @@ const loggedInViewerRouter = createProtectedRouter() items: payment, numActive: countActive(payment), }, - connectedCalendars, }; }, })