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

@@ -35,7 +35,7 @@ export function useHomepageRecentlyOpenedRides(enabled = true) {
const { data, error } = await supabase
.from('rides')
.select(`*, park:parks(*), location:locations(*)`)
.select(`*, park:parks(*, location:locations(*))`)
.gte('opened_date', oneYearAgo.toISOString())
.order('opened_date', { ascending: false })
.limit(12);