Skip to content

Commit 44547df

Browse files
committed
fix types
1 parent d39addf commit 44547df

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

github/resource_github_team_settings.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func getBatchUserNodeIds(ctx context.Context, meta any, usernames []string) (map
2121

2222
// Create GraphQL variables and query struct using reflection (similar to data_source_github_users.go)
2323
type UserFragment struct {
24-
ID githubv4.ID `graphql:"id"`
24+
ID string `graphql:"id"`
2525
}
2626

2727
var fields []reflect.StructField
@@ -49,7 +49,7 @@ func getBatchUserNodeIds(ctx context.Context, meta any, usernames []string) (map
4949
label := fmt.Sprintf("User%d", idx)
5050
user := query.FieldByName(label).Interface().(UserFragment)
5151
if user.ID != "" {
52-
result[username] = string(user.ID.(githubv4.String))
52+
result[username] = user.ID
5353
}
5454
}
5555

0 commit comments

Comments
 (0)