mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 07:13:32 +00:00
committed by
Kyle Spearrin
parent
e0ff13e193
commit
47b5b9f950
@@ -244,7 +244,7 @@ export class GetCommand {
|
||||
const buf = await response.arrayBuffer();
|
||||
const key = await this.cryptoService.getOrgKey(cipher.organizationId);
|
||||
const decBuf = await this.cryptoService.decryptFromBytes(buf, key);
|
||||
const filePath = await CliUtils.saveFile(new Buffer(decBuf), cmd.output, attachments[0].fileName);
|
||||
const filePath = await CliUtils.saveFile(Buffer.from(decBuf), cmd.output, attachments[0].fileName);
|
||||
const res = new MessageResponse('Saved ' + filePath, null);
|
||||
res.raw = filePath;
|
||||
return Response.success(res);
|
||||
|
||||
Reference in New Issue
Block a user