Skip to content

Commit

Permalink
Fix creating team collaborators when some are already collaborators (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mars authored Oct 11, 2023
1 parent be0e791 commit bf551f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion heroku/resource_heroku_team_collaborator.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func resourceHerokuTeamCollaboratorCreate(d *schema.ResourceData, meta interface
if strings.Contains(strings.ToLower(createErr.Error()), "is already a collaborator on app") {
// Loop through all collaborators on the app to get the collaborator ID
collaborators, listErr := client.TeamAppCollaboratorList(context.TODO(), appID,
&heroku.ListRange{Max: 1000, Descending: true})
&heroku.ListRange{Field: "email", Max: 1000})
if listErr != nil {
return listErr
}
Expand Down

0 comments on commit bf551f5

Please sign in to comment.