mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-25 14:31:13 -05:00
Fix homepage date column names
This commit is contained in:
@@ -13,8 +13,8 @@ export function useHomepageRecentlyOpenedParks(enabled = true) {
|
||||
const { data, error } = await supabase
|
||||
.from('parks')
|
||||
.select(`*, location:locations(*), operator:companies!parks_operator_id_fkey(*)`)
|
||||
.gte('opened_date', toDateOnly(oneYearAgo))
|
||||
.order('opened_date', { ascending: false })
|
||||
.gte('opening_date', toDateOnly(oneYearAgo))
|
||||
.order('opening_date', { ascending: false })
|
||||
.limit(12);
|
||||
|
||||
if (error) throw error;
|
||||
@@ -37,8 +37,8 @@ export function useHomepageRecentlyOpenedRides(enabled = true) {
|
||||
const { data, error } = await supabase
|
||||
.from('rides')
|
||||
.select(`*, park:parks(*, location:locations(*))`)
|
||||
.gte('opened_date', toDateOnly(oneYearAgo))
|
||||
.order('opened_date', { ascending: false })
|
||||
.gte('opening_date', toDateOnly(oneYearAgo))
|
||||
.order('opening_date', { ascending: false })
|
||||
.limit(12);
|
||||
|
||||
if (error) throw error;
|
||||
|
||||
Reference in New Issue
Block a user