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