Vercel/app/admin/photos/sync/page.tsx
2025-04-19 11:23:32 -05:00

18 lines
457 B
TypeScript

import AdminPhotosSyncClient from '@/admin/AdminPhotosSyncClient';
import { AI_TEXT_GENERATION_ENABLED } from '@/app/config';
import { getOutdatedPhotos } from '@/photo/db/query';
export const maxDuration = 60;
export default async function AdminSyncPage() {
const photos = await getOutdatedPhotos()
.catch(() => []);
return (
<AdminPhotosSyncClient {...{
photos,
hasAiTextGeneration: AI_TEXT_GENERATION_ENABLED,
}} />
);
}