🪻 distributed transcription service thistle.dunkirk.sh

bug: fix result transcript getting swalloed

dunkirk.sh 54239ae6 8a7efe9e

verified
Changed files
+2 -2
src
+2 -2
src/lib/transcription.ts
···
const es = createEventSource({
url: `${this.serviceUrl}/transcribe/${jobId}/stream`,
-
onMessage: ({ event, data }) => {
+
onMessage: async ({ event, data }) => {
try {
// Handle "error" events from SSE (e.g., "Job not found")
if (event === "error") {
···
}
const update = JSON.parse(data) as WhisperJob;
-
this.handleWhisperUpdate(transcriptionId, filePath, update);
+
await this.handleWhisperUpdate(transcriptionId, filePath, update);
} catch (err) {
console.error(
`[Stream] Error processing update for ${transcriptionId}:`,