mirror of
https://github.com/PretendoNetwork/BOSS.git
synced 2026-03-21 17:34:19 -05:00
fix(cli): Allow download of files with no payload content
This commit is contained in:
parent
f3c57f99ef
commit
c17b68c45f
|
|
@ -117,7 +117,7 @@ const downloadCmd = new Command('download')
|
|||
const keys = ctx.get3DSKeys();
|
||||
const decrypted = decrypt3DS(buffer, keys.aesKey);
|
||||
// TODO - Handle multiple payloads
|
||||
buffer = decrypted.payload_contents[0].content;
|
||||
buffer = decrypted.payload_contents[0]?.content ?? Buffer.alloc(0);
|
||||
}
|
||||
|
||||
await pipeline(Readable.from(buffer), process.stdout);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user