Skip to content

Commit

Permalink
[databases]: test 3 logsink
Browse files Browse the repository at this point in the history
  • Loading branch information
loosla committed Oct 3, 2024
1 parent 43460fa commit 6f8fd5e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions databases.go
Original file line number Diff line number Diff line change
Expand Up @@ -1886,16 +1886,13 @@ func (svc *DatabasesServiceOp) CreateLogsink(ctx context.Context, databaseID str
return nil, nil, err
}

root := new(DatabaseLogsink)
root.Name = createLogsink.Name
root.Type = createLogsink.Type
root.Config = createLogsink.Config
root := new(databaseLogsinksRoot)

resp, err := svc.client.Do(ctx, req, root)
if err != nil {
return nil, resp, err
}
return root, resp, nil
return &root.Sinks[0], resp, nil
}

// GetLogsink gets a logsink for a database
Expand Down

0 comments on commit 6f8fd5e

Please sign in to comment.