From 5882b8a15ad21803276fb9d75ae875d4679b9fe4 Mon Sep 17 00:00:00 2001 From: George J Padayatti Date: Wed, 10 Apr 2024 03:54:12 +0530 Subject: [PATCH] Fix: Fetch active connection when sending verification request Signed-off-by: George J Padayatti --- config/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"},