Skip to content

Commit

Permalink
Fix: calendar integration broken in v0.9.0 (#3566)
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Jun 3, 2024
1 parent fb58a66 commit d42271a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/api/services/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { formatApiCall } from "utils/proxy/api-helpers";
import createLogger from "utils/logger";
import genericProxyHandler from "utils/proxy/handlers/generic";
import widgets from "widgets/widgets";
import calendarProxyHandler from "widgets/calendar/proxy";

const logger = createLogger("servicesProxy");

Expand All @@ -18,8 +19,8 @@ export default async function handler(req, res) {
const serviceProxyHandler = widget.proxyHandler || genericProxyHandler;

if (serviceProxyHandler instanceof Function) {
// quick return for no endpoint services
if (!req.query.endpoint) {
// quick return for no endpoint services, calendar is an exception
if (!req.query.endpoint || serviceProxyHandler === calendarProxyHandler) {
return serviceProxyHandler(req, res);
}

Expand Down

0 comments on commit d42271a

Please sign in to comment.