mirror of
https://github.com/lucasrcsantana/story-generator.git
synced 2025-12-16 13:27:52 +00:00
Corrigindo processamento do áudio
This commit is contained in:
parent
933358483e
commit
f4965db3e6
@ -80,7 +80,7 @@ export function AudioRecorder({ storyId, studentId, onAudioUploaded }: AudioReco
|
||||
if (!recordData) throw new Error('Registro não criado');
|
||||
|
||||
// 2. Upload do arquivo usando o ID do registro
|
||||
const filePath = `recordings/${recordData.id}/${Date.now()}.webm`;
|
||||
const filePath = `${studentId}/${storyId}/${recordData.id}.webm`;
|
||||
|
||||
const { error: uploadError } = await supabase.storage
|
||||
.from('recordings') // Mudado para audio-uploads para manter consistência
|
||||
|
||||
Loading…
Reference in New Issue
Block a user