mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-25 00:11:14 -05:00
Fix database schema
This commit is contained in:
@@ -19,7 +19,7 @@ export function useCoasterStats(rideId: string | undefined) {
|
||||
queryFn: async () => {
|
||||
if (!rideId) return [];
|
||||
|
||||
const { data, error } = await (supabase as any)
|
||||
const { data, error} = await supabase
|
||||
.from('ride_coaster_stats')
|
||||
.select('*')
|
||||
.eq('ride_id', rideId)
|
||||
@@ -27,7 +27,7 @@ export function useCoasterStats(rideId: string | undefined) {
|
||||
|
||||
if (error) throw error;
|
||||
|
||||
return (data || []).map((stat: any) => ({
|
||||
return (data || []).map((stat) => ({
|
||||
id: stat.id,
|
||||
ride_id: stat.ride_id,
|
||||
stat_name: stat.stat_name,
|
||||
|
||||
Reference in New Issue
Block a user