diff --git a/config/views.py b/config/views.py index 92a5414..94b4e22 100644 --- a/config/views.py +++ b/config/views.py @@ -373,7 +373,7 @@ def post(self, request): ) try: - connection = Connection.objects.get(dataSourceId=datasource) + connection = Connection.objects.get(dataSourceId=datasource, connectionState="active") except Connection.DoesNotExist: return JsonResponse( {"error": "DISP Connection not found"},