Changes
This commit is contained in:
@@ -29,7 +29,7 @@ export function ProductReviews({ productId, type }: ProductReviewsProps) {
|
||||
const fetchReviews = async () => {
|
||||
let query = supabase
|
||||
.from('reviews')
|
||||
.select('id, rating, title, body, created_at, profiles (full_name)')
|
||||
.select('id, rating, title, body, created_at, profiles:user_id (full_name)')
|
||||
.eq('is_approved', true);
|
||||
|
||||
if (productId) {
|
||||
|
||||
@@ -22,7 +22,7 @@ export function TestimonialsSection() {
|
||||
const fetchReviews = async () => {
|
||||
const { data } = await supabase
|
||||
.from('reviews')
|
||||
.select('id, rating, title, body, created_at, profiles (full_name)')
|
||||
.select('id, rating, title, body, created_at, profiles:user_id (full_name)')
|
||||
.eq('is_approved', true)
|
||||
.order('created_at', { ascending: false })
|
||||
.limit(6);
|
||||
|
||||
Reference in New Issue
Block a user