mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-30 08:10:34 +01:00
Specify api url in Send file download request (#291)
This commit is contained in:
parent
21ca15fb84
commit
019966f6d5
@ -86,7 +86,7 @@ export class SendReceiveCommand extends DownloadCommand {
|
|||||||
process.stdout.write(response?.text?.text);
|
process.stdout.write(response?.text?.text);
|
||||||
return Response.success();
|
return Response.success();
|
||||||
case SendType.File:
|
case SendType.File:
|
||||||
const downloadData = await this.apiService.getSendFileDownloadData(response, this.sendAccessRequest);
|
const downloadData = await this.apiService.getSendFileDownloadData(response, this.sendAccessRequest, apiUrl);
|
||||||
return await this.saveAttachmentToFile(downloadData.url, this.decKey, response?.file?.fileName, options.output);
|
return await this.saveAttachmentToFile(downloadData.url, this.decKey, response?.file?.fileName, options.output);
|
||||||
default:
|
default:
|
||||||
return Response.success(new SendAccessResponse(response));
|
return Response.success(new SendAccessResponse(response));
|
||||||
|
Loading…
Reference in New Issue
Block a user