1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-22 03:03:43 +00:00

Use Get command for final return value of edit (#290)

This commit is contained in:
Matt Gibson
2021-04-20 14:55:04 -05:00
committed by GitHub
parent 6d46dc4b87
commit 754dfe9d80
2 changed files with 9 additions and 6 deletions

View File

@@ -198,7 +198,9 @@ export class SendProgram extends Program {
})
.action(async (encodedJson: string, options: program.OptionValues) => {
await this.exitIfLocked();
const cmd = new SendEditCommand(this.main.sendService, this.main.userService);
const getCmd = new SendGetCommand(this.main.sendService, this.main.environmentService,
this.main.searchService, this.main.cryptoService);
const cmd = new SendEditCommand(this.main.sendService, this.main.userService, getCmd);
const response = await cmd.run(encodedJson, options);
this.processResponse(response);
});