diff --git a/src/app/page.tsx b/src/app/page.tsx index 9f45ad0..4462275 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -32,7 +32,7 @@ export default async function HomePage() { const featured = products.map((p) => toProductDTO(p, activePromotions)); const readyMadeRows = await prisma.product.findMany({ - where: { showOnProducts: true }, + where: { showAsReadyMade: true }, take: 4, orderBy: { createdAt: 'asc' }, }); diff --git a/src/app/products/[slug]/page.tsx b/src/app/products/[slug]/page.tsx index f0d89dc..6dc4c71 100644 --- a/src/app/products/[slug]/page.tsx +++ b/src/app/products/[slug]/page.tsx @@ -9,7 +9,7 @@ export default async function StandardProductPage({ params }: { params: { slug: const activePromotions = await fetchActivePromotions(); const row = await prisma.product.findUnique({ where: { slug: params.slug } }); - if (!row || !row.showOnProducts) notFound(); + if (!row || !row.showAsReadyMade) notFound(); const product = toProductDTO(row, activePromotions, 'plain'); diff --git a/src/app/products/page.tsx b/src/app/products/page.tsx index df1bfa8..4802676 100644 --- a/src/app/products/page.tsx +++ b/src/app/products/page.tsx @@ -38,7 +38,7 @@ export default async function ReadyMadeProductsPage({ searchParams }: { searchPa // Full palette across ready-made products only, for the swatch filter. const allProducts = await prisma.product.findMany({ - where: { showOnProducts: true }, + where: { showAsReadyMade: true }, select: { colors: true }, }); const paletteSet = new Set();