aboutsummaryrefslogtreecommitdiff
path: root/RhSolutions.SkuParser.Api/Services/CommonCsvParser.cs
diff options
context:
space:
mode:
authorSerghei Cebotari <serghei@cebotari.ru>2025-01-15 15:20:31 +0300
committerSerghei Cebotari <serghei@cebotari.ru>2025-01-15 15:20:31 +0300
commit5439fcfb75920974055247801adae3ceddfcb9b3 (patch)
treebc4a8c99be68a5b48ddc376d508ec416466a6512 /RhSolutions.SkuParser.Api/Services/CommonCsvParser.cs
parentc1b7be71c990bc8b11bb052b43551841d0af5ba9 (diff)
Fix csv parsingHEADmaster
Diffstat (limited to 'RhSolutions.SkuParser.Api/Services/CommonCsvParser.cs')
-rw-r--r--RhSolutions.SkuParser.Api/Services/CommonCsvParser.cs4
1 files changed, 2 insertions, 2 deletions
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<ProductQuantity>()
- .ToDictionary(pq => new Product() { Sku = pq.Product.Sku }, pq => pq.Quantity);
+ return csvReader.GetRecords<SkuQuantity>()
+ .ToDictionary(pq => new Product() { Sku = pq.Sku }, pq => pq.Quantity);
}
}