feat: use Supabase for flower job storage

This commit is contained in:
Chaewon Lee
2026-06-12 16:19:36 +09:00
committed by GitHub
parent 922320d59a
commit 5d65a5ffae
18 changed files with 364 additions and 55 deletions

View File

@@ -14,11 +14,11 @@ export async function POST({ request }) {
}
const userInput = readUserInput(formData);
const job = createJob(userInput);
const job = await createJob(userInput);
const imageBytes = new Uint8Array(await image.arrayBuffer());
const moodAnalysis = await analyzeImageMood(imageBytes, image.type || 'image/jpeg', userInput);
updateJob(job.id, { moodAnalysis });
await updateJob(job.id, { moodAnalysis });
return json({
jobId: job.id,