fix(shop): resolve postgrest join ambiguity for product_modules
All checks were successful
Staging Build / build (push) Successful in 2m54s
All checks were successful
Staging Build / build (push) Successful in 2m54s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user