Redacted Price resolution from GetProductAsync #51

Merged
khwezi merged 1 commits from midrandshop into master 2026-05-30 18:55:47 +02:00
@@ -304,8 +304,7 @@ public sealed class ProductService(IDbContextFactory<MidrandBooksDbContext> cont
{
await using var context = await contextFactory.CreateDbContextAsync(cancellationToken);
var product = await context.Products
.Include(i => i.Price)
var product = await context.Products
.AsNoTracking().FirstOrDefaultAsync(p => p.Id == productId, cancellationToken);
return product is null