From 5439fcfb75920974055247801adae3ceddfcb9b3 Mon Sep 17 00:00:00 2001 From: Serghei Cebotari Date: Wed, 15 Jan 2025 15:20:31 +0300 Subject: Fix csv parsing --- RhSolutions.SkuParser.Api/Services/CommonCsvParser.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'RhSolutions.SkuParser.Api/Services') diff --git a/RhSolutions.SkuParser.Api/Services/CommonCsvParser.cs b/RhSolutions.SkuParser.Api/Services/CommonCsvParser.cs index e88ba25..6dfc0da 100644 --- a/RhSolutions.SkuParser.Api/Services/CommonCsvParser.cs +++ b/RhSolutions.SkuParser.Api/Services/CommonCsvParser.cs @@ -20,7 +20,7 @@ public class CommonCsvParser : ISkuParser }; using CsvReader csvReader = new(reader, config); - return csvReader.GetRecords() - .ToDictionary(pq => new Product() { Sku = pq.Product.Sku }, pq => pq.Quantity); + return csvReader.GetRecords() + .ToDictionary(pq => new Product() { Sku = pq.Sku }, pq => pq.Quantity); } } -- cgit v1.2.3