mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-24 18:11:12 -05:00
Fix remaining JSONB references
This commit is contained in:
@@ -32,18 +32,6 @@ export function isReviewWithPhotos(content: any): boolean {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Type guard: Check if content is a photo submission with JSONB photos
|
||||
*/
|
||||
export function isPhotoSubmissionWithJsonb(content: any): boolean {
|
||||
return (
|
||||
content &&
|
||||
typeof content === 'object' &&
|
||||
content.content &&
|
||||
Array.isArray(content.content.photos) &&
|
||||
content.content.photos.length > 0
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Normalize photo data from any source to PhotoItem[]
|
||||
|
||||
Reference in New Issue
Block a user