···
···
transcript: transcript || undefined,
} else if (update.status === "completed") {
// Fetch and save VTT file from Murmur
const whisperJobId = this.db
.query<{ whisper_job_id: string }, [string]>(
···
this.updateTranscription(transcriptionId, {
···
···
transcript: transcript || undefined,
} else if (update.status === "completed") {
+
// Set to finalizing state while we fetch and process the VTT
+
this.updateTranscription(transcriptionId, {
+
this.events.emit(transcriptionId, {
// Fetch and save VTT file from Murmur
const whisperJobId = this.db
.query<{ whisper_job_id: string }, [string]>(
···
+
// Set to finalizing state while we process
+
this.updateTranscription(transcriptionId, {
+
this.events.emit(transcriptionId, {
+
// Then immediately mark as completed
this.updateTranscription(transcriptionId, {