mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(server): handle empty transcript result correctly (#11385)
This commit is contained in:
@@ -234,6 +234,9 @@ export class CopilotTranscriptionService {
|
||||
return;
|
||||
}
|
||||
}
|
||||
this.event.emit('workspace.file.transcript.failed', {
|
||||
jobId,
|
||||
});
|
||||
} catch (error: any) {
|
||||
// record failed status and passthrough error
|
||||
this.event.emit('workspace.file.transcript.failed', {
|
||||
@@ -269,6 +272,9 @@ export class CopilotTranscriptionService {
|
||||
return;
|
||||
}
|
||||
}
|
||||
this.event.emit('workspace.file.transcript.failed', {
|
||||
jobId,
|
||||
});
|
||||
} catch (error: any) {
|
||||
// record failed status and passthrough error
|
||||
this.event.emit('workspace.file.transcript.failed', {
|
||||
|
||||
Reference in New Issue
Block a user