mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 13:31:13 -05:00
Fix moderation type errors
This commit is contained in:
@@ -277,9 +277,9 @@ export interface UserTopList {
|
||||
id: string;
|
||||
user_id: string;
|
||||
title: string;
|
||||
description?: string;
|
||||
description?: string | null;
|
||||
list_type: 'parks' | 'rides' | 'coasters' | 'companies' | 'mixed';
|
||||
is_public: boolean;
|
||||
is_public: boolean | null;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
items?: UserTopListItem[]; // New relational data
|
||||
@@ -291,7 +291,7 @@ export interface UserTopListItem {
|
||||
entity_type: 'park' | 'ride' | 'company';
|
||||
entity_id: string;
|
||||
position: number;
|
||||
notes?: string;
|
||||
notes?: string | null;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
// Populated via joins
|
||||
|
||||
@@ -16,14 +16,14 @@ export interface PhotoSubmissionItem {
|
||||
photo_submission_id: string;
|
||||
cloudflare_image_id: string;
|
||||
cloudflare_image_url: string;
|
||||
caption?: string;
|
||||
title?: string;
|
||||
filename?: string;
|
||||
caption?: string | null;
|
||||
title?: string | null;
|
||||
filename?: string | null;
|
||||
order_index: number;
|
||||
file_size?: number;
|
||||
mime_type?: string;
|
||||
date_taken?: string;
|
||||
date_taken_precision?: string;
|
||||
file_size?: number | null;
|
||||
mime_type?: string | null;
|
||||
date_taken?: string | null;
|
||||
date_taken_precision?: string | null;
|
||||
created_at: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,11 +12,11 @@ export interface PhotoItem {
|
||||
id: string;
|
||||
url: string;
|
||||
filename: string;
|
||||
caption?: string;
|
||||
caption?: string | null;
|
||||
size?: number;
|
||||
type?: string;
|
||||
title?: string;
|
||||
date_taken?: string;
|
||||
title?: string | null;
|
||||
date_taken?: string | null;
|
||||
}
|
||||
|
||||
// Normalized photo for consistent display
|
||||
|
||||
Reference in New Issue
Block a user