Fix: Correct trending rides query relationship

This commit is contained in:
gpt-engineer-app[bot]
2025-10-31 13:23:48 +00:00
parent 4f24eaf204
commit de7b3fdea4
7 changed files with 7 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ export function useHomepageHighestRatedRides(enabled = true) {
queryFn: async () => {
const { data, error } = await supabase
.from('rides')
.select(`*, park:parks(*), location:locations(*)`)
.select(`*, park:parks(*, location:locations(*))`)
.not('average_rating', 'is', null)
.order('average_rating', { ascending: false })
.limit(12);