Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(server): handle empty transcript result correctly (#11385)

darkskygit1b5df6b75eeb
diff --git a/packages/backend/server/src/plugins/copilot/transcript/service.ts b/packages/backend/server/src/plugins/copilot/transcript/service.ts
index 827e100acb..c18baae46e 100644
--- a/packages/backend/server/src/plugins/copilot/transcript/service.ts
+++ b/packages/backend/server/src/plugins/copilot/transcript/service.ts
@@ -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', {