There was an error while loading. Please reload this page.
1 parent 5f4f414 commit 1792f58Copy full SHA for 1792f58
2 files changed
list/managelist/types/response.go
@@ -12,7 +12,9 @@ func (r *CreateOutput) HasPartialError() bool {
12
}
13
14
type UpdateOutput struct {
15
- Updated bool `json:"updated"`
+ Data struct {
16
+ Updated bool `json:"updated"`
17
+ } `json:"data"`
18
19
20
func (r *UpdateOutput) HasPartialError() bool {
list/managelist/types/response_test.go
@@ -21,7 +21,11 @@ func Test_UpdateOutput_HasPartialError(t *testing.T) {
21
{
22
name: "has data",
23
res: &types.UpdateOutput{
24
- Updated: false,
+ Data: struct {
25
+ Updated bool "json:\"updated\""
26
+ }{
27
+ Updated: false,
28
+ },
29
},
30
expect: false,
31
0 commit comments