Skip to content

Conversation

@davidabram
Copy link
Member

No description provided.

@vercel
Copy link

vercel bot commented Sep 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
web-contact Ready Ready Preview Comment Oct 8, 2025 0:23am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
company-website Skipped Skipped Oct 8, 2025 0:23am

await notifyContactCreated(name, email, url);
} else if (errorMessage) {
await notifyContactError(name, email, message);
throw {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why throw here?


const statusCode = (error as any).statusCode || 501;
const message =
(error as any)?.body?.message || "Issue while processing request";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't a standard error. What is this?

id: response.id,
url: response.url,
};
} else if (response.id && !isFullPage(response)) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

early return / flatten if else

}
} catch (e) {
return {
error: "Failed to create notion page",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

log

source,
);

if (notionPageId && url) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Early return, figure out what's going on in notion helper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants