Skip to content

Commit

Permalink
Fix: Fetch active connection when sending verification request
Browse files Browse the repository at this point in the history
Signed-off-by: George J Padayatti <george.padayatti@igrant.io>
  • Loading branch information
georgepadayatti committed Apr 9, 2024
1 parent 08bfef2 commit 5882b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down

0 comments on commit 5882b8a

Please sign in to comment.