From 06cba405f3aea32e6f7687f1a2383b1dee8211f1 Mon Sep 17 00:00:00 2001 From: DanielS Date: Wed, 22 Jul 2026 15:27:38 +0200 Subject: [PATCH] fix(shop): resolve postgrest join ambiguity for product_modules --- shop/lib/actions/products.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shop/lib/actions/products.ts b/shop/lib/actions/products.ts index f44f169..1a31643 100644 --- a/shop/lib/actions/products.ts +++ b/shop/lib/actions/products.ts @@ -9,7 +9,7 @@ export async function getProducts() { const supabase = await createClient() const { data, error } = await supabase .from('products') - .select('*, category:categories(*), modules:product_modules(*)') + .select('*, category:categories(*), modules:product_modules!product_modules_product_id_fkey(*)') .order('created_at', { ascending: false }) if (error) throw error