Update conversion of Uint8Array to Readable for in-memory attachments
This commit is contained in:
parent
2e62d5e044
commit
2b7936cd86
2 changed files with 7 additions and 1 deletions
|
@ -126,7 +126,7 @@ export async function encryptAttachmentV2({
|
|||
try {
|
||||
const source =
|
||||
'data' in plaintext
|
||||
? Readable.from(plaintext.data)
|
||||
? Readable.from([Buffer.from(plaintext.data)])
|
||||
: createReadStream(plaintext.absolutePath);
|
||||
|
||||
await pipeline(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue