fix(server): slide audio override (#11688)

This commit is contained in:
darkskygit
2025-04-15 03:59:22 +00:00
parent f2f1a10715
commit ad712da07f

View File

@@ -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 });
}