From 6f8fd5e4250c625ef81725361e47eb24c93328c9 Mon Sep 17 00:00:00 2001 From: Anna Lushnikova Date: Thu, 3 Oct 2024 11:20:11 -0400 Subject: [PATCH] [databases]: test 3 logsink --- databases.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/databases.go b/databases.go index fbbb0a3..556aeef 100644 --- a/databases.go +++ b/databases.go @@ -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