Skip to content

Commit

Permalink
ref: fix casing in memberID
Browse files Browse the repository at this point in the history
  • Loading branch information
jianyuan committed Dec 7, 2023
1 parent 24b9e99 commit d6f394e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sentry/team_members.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ type TeamMember struct {
// TeamMember provides methods for accessing Sentry team member API endpoints.
type TeamMembersService service

func (s *TeamMembersService) Create(ctx context.Context, organizationSlug string, memberId string, teamSlug string) (*TeamMember, *Response, error) {
u := fmt.Sprintf("0/organizations/%v/members/%v/teams/%v/", organizationSlug, memberId, teamSlug)
func (s *TeamMembersService) Create(ctx context.Context, organizationSlug string, memberID string, teamSlug string) (*TeamMember, *Response, error) {
u := fmt.Sprintf("0/organizations/%v/members/%v/teams/%v/", organizationSlug, memberID, teamSlug)
req, err := s.client.NewRequest("POST", u, nil)
if err != nil {
return nil, nil, err
Expand All @@ -39,8 +39,8 @@ func (s *TeamMembersService) Create(ctx context.Context, organizationSlug string
return member, resp, nil
}

func (s *TeamMembersService) Delete(ctx context.Context, organizationSlug string, memberId string, teamSlug string) (*TeamMember, *Response, error) {
u := fmt.Sprintf("0/organizations/%v/members/%v/teams/%v/", organizationSlug, memberId, teamSlug)
func (s *TeamMembersService) Delete(ctx context.Context, organizationSlug string, memberID string, teamSlug string) (*TeamMember, *Response, error) {
u := fmt.Sprintf("0/organizations/%v/members/%v/teams/%v/", organizationSlug, memberID, teamSlug)
req, err := s.client.NewRequest("DELETE", u, nil)
if err != nil {
return nil, nil, err
Expand Down

0 comments on commit d6f394e

Please sign in to comment.