Skip to content

Commit 22bf53a

Browse files
Use _id when unmarshalling team members API response (#94)
## What Use _id when unmarshalling the API response for team members ## Why Recent versions of the codefresh API do not return `id` for team members, only `_id`. See #93 for more details ## Notes Closes #93
1 parent c6d19d6 commit 22bf53a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/team.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
)
66

77
type TeamUser struct {
8-
ID string `json:"id,omitempty"`
8+
ID string `json:"_id,omitempty"`
99
UserName string `json:"userName,omitempty"`
1010
Email string `json:"email,omitempty"`
1111
}

0 commit comments

Comments
 (0)