From 19faaaf5e9272a5932f0262d2c0414a850ec0fdf Mon Sep 17 00:00:00 2001 From: Rinat G <107737@gmail.com> Date: Fri, 6 Sep 2024 15:36:46 +0700 Subject: [PATCH] upd --- middleware/pingprophet/integrations/SMSEdgeSMSRoutes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware/pingprophet/integrations/SMSEdgeSMSRoutes.py b/middleware/pingprophet/integrations/SMSEdgeSMSRoutes.py index 878b53f..ae60fad 100644 --- a/middleware/pingprophet/integrations/SMSEdgeSMSRoutes.py +++ b/middleware/pingprophet/integrations/SMSEdgeSMSRoutes.py @@ -65,7 +65,7 @@ async def integration_activated(self, data): "description": "Auto-created from SMSEdge integration", "company_id": company_id, "connection_id": smpp['id'], - "clicks_webhook_url": clicks_webhook_url[0]['value'] if clicks_webhook_url is not None else None, + "clicks_webhook_url": clicks_webhook_url[0]['value'] if len(clicks_webhook_url) > 0 else None, }) await self.create_route_rate_settings(sms_route['id'], {