Skip to content

Commit c3bf3cd

Browse files
committed
fix: wrong data returned for some token types instead of Data it was returning the Internal data
1 parent 911e0f5 commit c3bf3cd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

token_group_deploy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func (t *TokenGroupDeploy) Internal() (d map[string]any) {
1818

1919
func (t *TokenGroupDeploy) Data() (d map[string]any) {
2020
d = map[string]any{"username": t.Username}
21-
maps.Copy(d, t.TokenWithScopes.Internal())
21+
maps.Copy(d, t.TokenWithScopes.Data())
2222
return d
2323
}
2424

token_personal.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func (t *TokenPersonal) Internal() (d map[string]any) {
1919

2020
func (t *TokenPersonal) Data() (d map[string]any) {
2121
d = map[string]any{"user_id": t.UserID}
22-
maps.Copy(d, t.TokenWithScopes.Internal())
22+
maps.Copy(d, t.TokenWithScopes.Data())
2323
return d
2424
}
2525

token_project_deploy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func (t *TokenProjectDeploy) Internal() (d map[string]any) {
1616

1717
func (t *TokenProjectDeploy) Data() (d map[string]any) {
1818
d = map[string]any{"username": t.Username}
19-
maps.Copy(d, t.TokenWithScopes.Internal())
19+
maps.Copy(d, t.TokenWithScopes.Data())
2020
return d
2121
}
2222

0 commit comments

Comments
 (0)