Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update webhook receiver identification for Zapier #1884

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

devkiran
Copy link
Collaborator

This pull request includes changes to the apps/web/lib/webhook/utils.ts file to improve the identification of webhook receivers and simplify the code. The most important changes include adding a new entry to the webhookReceivers object and refactoring the identifyWebhookReceiver function to use destructuring for better readability.

Improvements to webhook receiver identification:

  • apps/web/lib/webhook/utils.ts: Added a new entry "zapier.com": "zapier" to the webhookReceivers object to ensure proper identification of Zapier webhooks.

Code simplification:

  • apps/web/lib/webhook/utils.ts: Refactored the identifyWebhookReceiver function to use destructuring for extracting the hostname from the URL object, improving code readability and maintainability.

Copy link

vercel bot commented Jan 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
dub ✅ Ready (Inspect) Visit Preview Jan 13, 2025 7:59am

@steven-tey steven-tey added this pull request to the merge queue Jan 13, 2025
@steven-tey steven-tey removed this pull request from the merge queue due to a manual request Jan 13, 2025
@steven-tey steven-tey merged commit e7d9daa into main Jan 13, 2025
7 checks passed
@steven-tey steven-tey deleted the fix-zapier-url-check branch January 13, 2025 20:07
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.

2 participants