From 4115f65223c1c989fac57dd911d7c49420ac72b0 Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Tue, 7 Jan 2025 14:18:43 -0600 Subject: [PATCH] Fix Provider name enum being used instead of value (#9216) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Webhooks are broken ### Changes 🏗️ Swaps the way we fill webhooks into strings ### Checklist 📋 #### For code changes: - [x] I have clearly listed my changes in the PR description - [x] I have made a test plan - [x] I have tested my changes according to the test plan: - [x] Manually test creating a webhook with Github and Compass --- autogpt_platform/backend/backend/integrations/webhooks/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt_platform/backend/backend/integrations/webhooks/utils.py b/autogpt_platform/backend/backend/integrations/webhooks/utils.py index 1dc037d82d1a..e53a18f0fb1c 100644 --- a/autogpt_platform/backend/backend/integrations/webhooks/utils.py +++ b/autogpt_platform/backend/backend/integrations/webhooks/utils.py @@ -7,6 +7,6 @@ # TODO: add test to assert this matches the actual API route def webhook_ingress_url(provider_name: ProviderName, webhook_id: str) -> str: return ( - f"{app_config.platform_base_url}/api/integrations/{provider_name}" + f"{app_config.platform_base_url}/api/integrations/{provider_name.value}" f"/webhooks/{webhook_id}/ingress" )