From 222f2f6204daba838a7cf3c07a9af11ac9c46c7d Mon Sep 17 00:00:00 2001 From: Mohamad Choupan Date: Sat, 21 Dec 2024 20:13:45 +0330 Subject: [PATCH] feat: remove unmarshal --- pkg/describer/worker.go | 2 +- provider/describer/repository.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/describer/worker.go b/pkg/describer/worker.go index c372d1c4..1723ebe5 100755 --- a/pkg/describer/worker.go +++ b/pkg/describer/worker.go @@ -69,7 +69,7 @@ func Do(ctx context.Context, if err != nil { return nil, fmt.Errorf("decrypt error: %w", err) } - logger.Info("decrypted config", zap.Any("config", config)) + // logger.Info("decrypted config", zap.Any("config", config)) return doDescribe(ctx, logger, job, config, grpcEndpoint, ingestionPipelineEndpoint, describeDeliverToken, useOpenSearch) } diff --git a/provider/describer/repository.go b/provider/describer/repository.go index dd822db1..ed0ec5a1 100644 --- a/provider/describer/repository.go +++ b/provider/describer/repository.go @@ -101,16 +101,16 @@ func GetRepositoryListWithOptions( } // Marshal the entire repo object back into JSON for Description - rawData, err := json.Marshal(r) - if err != nil { - return nil, fmt.Errorf("error marshalling repo data: %w", err) - } + // rawData, err := json.Marshal(r) + // if err != nil { + // return nil, fmt.Errorf("error marshalling repo data: %w", err) + // } resource := models.Resource{ ID: idStr, Name: nameStr, Description: JSONAllFieldsMarshaller{ - Value: rawData, + Value: r, }, }