summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--RhSolutions.Api/Controllers/ProductsController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/RhSolutions.Api/Controllers/ProductsController.cs b/RhSolutions.Api/Controllers/ProductsController.cs
index 34ed05b..eaedf9f 100644
--- a/RhSolutions.Api/Controllers/ProductsController.cs
+++ b/RhSolutions.Api/Controllers/ProductsController.cs
@@ -40,7 +40,7 @@ namespace RhSolutions.Api.Controllers
.Select(g => new Product(g.Key)
{
Name = g.First().Name,
- DeprecatedSkus = g.SelectMany(p => p.DeprecatedSkus).ToList(),
+ DeprecatedSkus = g.SelectMany(p => p.DeprecatedSkus).Distinct().ToList(),
ProductLines = g.SelectMany(p => p.ProductLines).Distinct().ToList(),
IsOnWarehouse = g.Any(p => p.IsOnWarehouse == true),
ProductMeasure = g.First().ProductMeasure,