Skip to content

Commit

Permalink
Fix parameter naming in delete_credentials method calls for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
arash77 committed Jan 15, 2025
1 parent 68fbd59 commit 0fe5d4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/webapps/galaxy/api/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def delete_service_credentials(
user_credentials_id: DecodedDatabaseIdField,
trans: ProvidesUserContext = DependsOnTrans,
):
self.service.delete_credentials(trans, user_id, user_credentials_id)
self.service.delete_credentials(trans, user_id, user_credentials_id=user_credentials_id)
return Response(status_code=status.HTTP_204_NO_CONTENT)

@router.delete(
Expand All @@ -94,5 +94,5 @@ def delete_credentials(
group_id: DecodedDatabaseIdField,
trans: ProvidesUserContext = DependsOnTrans,
):
self.service.delete_credentials(trans, user_id, group_id)
self.service.delete_credentials(trans, user_id, group_id=group_id)
return Response(status_code=status.HTTP_204_NO_CONTENT)

0 comments on commit 0fe5d4b

Please sign in to comment.