From 60522a7391f0f2d44791b1f107ef93a8a50842f8 Mon Sep 17 00:00:00 2001 From: Aleksandr Trushkin Date: Sun, 4 Feb 2024 21:43:38 +0300 Subject: [PATCH] minor fixes --- cmd/cli/main.go | 2 +- internal/storage/badger/client.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/cli/main.go b/cmd/cli/main.go index a523720..eb86dcd 100644 --- a/cmd/cli/main.go +++ b/cmd/cli/main.go @@ -1019,7 +1019,7 @@ func parseEwayDumpAction(ctx context.Context, cmd *cli.Command) error { Msg("processed items") for k := range seenItems { - out, err := repository.GoodsItem().Delete(ctx, k) + _, err := repository.GoodsItem().Delete(ctx, k) if err != nil { logger.Warn().Err(err).Str("sku", k).Msg("unable to delete item") continue diff --git a/internal/storage/badger/client.go b/internal/storage/badger/client.go index 0b92d90..b2997b7 100644 --- a/internal/storage/badger/client.go +++ b/internal/storage/badger/client.go @@ -53,7 +53,7 @@ func (c *client) Category() entity.CategoryRepository { } func (c *client) GoodsItem() entity.GoodsItemRepository { - return newGoodsItemClient(c.db) + return newGoodsItemClient(c.db, useJSON) } func (c *client) QueueClient() entity.MessageQueue {