Debug: Add logging to GetProductByIdAsync
This commit is contained in:
parent
0e8b53df01
commit
6f4befa188
@ -198,6 +198,12 @@ public class ProductService : IProductService
|
||||
.OrderBy(v => v.SortOrder)
|
||||
.ToListAsync();
|
||||
|
||||
Console.WriteLine($"[DEBUG GetProductById] ProductId: {id}, Variants loaded: {variants.Count}");
|
||||
foreach (var v in variants.Take(3))
|
||||
{
|
||||
Console.WriteLine($"[DEBUG GetProductById] - {v.VariantType}: {v.Name}");
|
||||
}
|
||||
|
||||
return new ProductDto
|
||||
{
|
||||
Id = product.Id,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user