🪻 distributed transcription service thistle.dunkirk.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: allow audio playback for pending recordings

The audio endpoint now accepts both "pending" and "completed" status, allowing admins to preview pending recordings before transcription.

💘 Generated with Crush

Co-Authored-By: Crush <crush@charm.land>

+7 -2
+7 -2
src/index.ts
··· 874 874 ); 875 875 } 876 876 877 - if (transcription.status !== "completed") { 877 + // For pending recordings, audio file exists even though transcription isn't complete 878 + // Allow audio access for pending and completed statuses 879 + if ( 880 + transcription.status !== "completed" && 881 + transcription.status !== "pending" 882 + ) { 878 883 return Response.json( 879 - { error: "Transcription not completed yet" }, 884 + { error: "Audio not available yet" }, 880 885 { status: 400 }, 881 886 ); 882 887 }