HubSpot App (#2380)
* Initial changes * OAuth done and credentials stored * Added "other" integrations * Switching to hubspot api client * Event creation for all attendees * Update and delete done * Doc update * Fixing types * App label is not mandatory * Fixing bad merge: App label deleted * Fixing bad automerge * Removing c.log Co-authored-by: Omar López <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
23 files changed
+562
-1925
No files matched your search
@@ -31,7 +31,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
throw new HttpError({ statusCode: 404, message: `API handler not found` });
|
||||
|
||||
const response = await handler(req, res);
|
||||
console.log("response", response);
|
||||
|
||||
return res.status(200);
|
||||
} catch (error) {
|
||||
|
||||
@@ -574,8 +574,8 @@ const loggedInViewerRouter = createProtectedRouter()
|
||||
// `flatMap()` these work like `.filter()` but infers the types correctly
|
||||
const conferencing = apps.flatMap((item) => (item.variant === "conferencing" ? [item] : []));
|
||||
const payment = apps.flatMap((item) => (item.variant === "payment" ? [item] : []));
|
||||
const other = apps.flatMap((item) => (item.variant.startsWith("other") ? [item] : []));
|
||||
const calendar = apps.flatMap((item) => (item.variant === "calendar" ? [item] : []));
|
||||
const other = apps.flatMap((item) => (item.variant === "other" ? [item] : []));
|
||||
return {
|
||||
conferencing: {
|
||||
items: conferencing,
|
||||
|
||||
Reference in new issue
Block a user