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): slide audio override (#11688)

darkskygitad712da07f7a
diff --git a/packages/backend/server/src/plugins/copilot/transcript/service.ts b/packages/backend/server/src/plugins/copilot/transcript/service.ts
index 0c45c3bc68..6eb05cd581 100644
--- a/packages/backend/server/src/plugins/copilot/transcript/service.ts
+++ b/packages/backend/server/src/plugins/copilot/transcript/service.ts
@@ -66,9 +66,14 @@ export class CopilotTranscriptionService {
});
const infos: AudioBlobInfos = [];
- for (const blob of blobs) {
+ for (const [idx, blob] of blobs.entries()) {
const buffer = await readStream(blob.createReadStream());
- const url = await this.storage.put(userId, workspaceId, blobId, buffer);
+ const url = await this.storage.put(
+ userId,
+ workspaceId,
+ `${blobId}-${idx}`,
+ buffer
+ );
infos.push({ url, mimeType: blob.mimetype });
}