Skip to content

Commit

Permalink
Fix: Query connection by connectionId instead of pk (or id)
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 6, 2024
1 parent a43870d commit 76dc1bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connection/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def delete(self, request, connectionId):

try:
connection = Connection.objects.get(
pk=connectionId, dataSourceId=datasource
connectionId=connectionId, dataSourceId=datasource
)
connection.delete()
return JsonResponse({}, status=status.HTTP_204_NO_CONTENT)
Expand Down

0 comments on commit 76dc1bb

Please sign in to comment.