Fix remaining JSONB references

This commit is contained in:
gpt-engineer-app[bot]
2025-11-03 21:36:08 +00:00
parent 22f4a68bd8
commit b5cbc42cdf
6 changed files with 308 additions and 52 deletions

View File

@@ -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[]