Skip to content

Commit 8194ab4

Browse files
authored
fix: update api response (#30)
* fix: update api response * chore: update version
1 parent 16fd58c commit 8194ab4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.6-beta
1+
0.0.6-beta.2

client/database_role.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ func (c *client) ListRole(ctx context.Context, instanceID int) ([]*api.Role, err
7070
}
7171

7272
var roleList struct {
73-
RoleList []*api.Role `json:"roleList"`
73+
Roles []*api.Role `json:"roles"`
7474
}
7575

7676
err = json.Unmarshal(body, &roleList)
7777
if err != nil {
7878
return nil, err
7979
}
8080

81-
return roleList.RoleList, nil
81+
return roleList.Roles, nil
8282
}
8383

8484
// UpdateRole updates the role in instance.

0 commit comments

Comments
 (0)