Skip to content

Scheduling infrastructure for absolutely everyone.

Hotfix: Fixing app types variants (fixes Hubspot) (#3176)

Leo Giovanettie1e369de9ece
diff --git a/packages/lib/deriveAppDictKeyFromType.ts b/packages/lib/deriveAppDictKeyFromType.ts
index 63a7f05a6e6..1d814cfd164 100644
--- a/packages/lib/deriveAppDictKeyFromType.ts
+++ b/packages/lib/deriveAppDictKeyFromType.ts
@@ -21,6 +21,13 @@ export function deriveAppDictKeyFromType(appType: string, dict: Record<string, u
return appTypeVariant2;
}
+ // Transform as last resort removing all underscores, applies to `hubspot_other_calendar` to be `hubsporothercalendar`
+ const appTypeVariant3 = appType.replace(/_/g, "");
+ handlers = dict[appTypeVariant3];
+ if (handlers) {
+ return appTypeVariant3;
+ }
+
return appType;
// const categories = ["video", "other", "calendar", "web3", "payment", "messaging"];