Redacted Price resolution from GetProductAsync
continuous-integration/drone/pr Build is passing

This commit is contained in:
Khwezi Mngoma
2026-05-30 18:55:23 +02:00
parent 4f6dbfcd37
commit 0702caa42d
@@ -305,7 +305,6 @@ public sealed class ProductService(IDbContextFactory<MidrandBooksDbContext> cont
await using var context = await contextFactory.CreateDbContextAsync(cancellationToken);
var product = await context.Products
.Include(i => i.Price)
.AsNoTracking().FirstOrDefaultAsync(p => p.Id == productId, cancellationToken);
return product is null