Skip to content

Commit bf551f5

Browse files
authored
Fix creating team collaborators when some are already collaborators (#380)
1 parent be0e791 commit bf551f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

heroku/resource_heroku_team_collaborator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func resourceHerokuTeamCollaboratorCreate(d *schema.ResourceData, meta interface
127127
if strings.Contains(strings.ToLower(createErr.Error()), "is already a collaborator on app") {
128128
// Loop through all collaborators on the app to get the collaborator ID
129129
collaborators, listErr := client.TeamAppCollaboratorList(context.TODO(), appID,
130-
&heroku.ListRange{Max: 1000, Descending: true})
130+
&heroku.ListRange{Field: "email", Max: 1000})
131131
if listErr != nil {
132132
return listErr
133133
}

0 commit comments

Comments
 (0)