Skip to content

Commit

Permalink
[databases]: test 5 logsink
Browse files Browse the repository at this point in the history
  • Loading branch information
loosla committed Oct 3, 2024
1 parent 9aa2d56 commit f613558
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions databases.go
Original file line number Diff line number Diff line change
Expand Up @@ -1907,12 +1907,12 @@ func (svc *DatabasesServiceOp) GetLogsink(ctx context.Context, databaseID string
return nil, nil, err
}

root := new(DatabaseLogsink)
root := new(databaseLogsinkRoot)
resp, err := svc.client.Do(ctx, req, root)
if err != nil {
return nil, resp, err
}
return root, resp, nil
return root.Sink, resp, nil
}

// ListTopics returns all topics for a given kafka cluster
Expand Down Expand Up @@ -1942,7 +1942,8 @@ func (svc *DatabasesServiceOp) UpdateLogsink(ctx context.Context, databaseID str
return nil, err
}

resp, err := svc.client.Do(ctx, req, nil)
root := new(databaseLogsinkRoot)
resp, err := svc.client.Do(ctx, req, root)
if err != nil {
return resp, err
}
Expand Down

0 comments on commit f613558

Please sign in to comment.