1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-08-27 23:31:41 +02:00

pass in new dependencies

This commit is contained in:
Kyle Spearrin 2018-05-18 10:58:30 -04:00
parent fc5043f07e
commit f62f181136

View File

@ -262,7 +262,7 @@ export class Program {
await this.exitIfLocked();
const command = new GetCommand(this.main.cipherService, this.main.folderService,
this.main.collectionService, this.main.totpService, this.main.auditService,
this.main.cryptoService);
this.main.cryptoService, this.main.tokenService);
const response = await command.run(object, id, cmd);
this.processResponse(response);
});
@ -292,7 +292,8 @@ export class Program {
})
.action(async (object, encodedJson, cmd) => {
await this.exitIfLocked();
const command = new CreateCommand(this.main.cipherService, this.main.folderService);
const command = new CreateCommand(this.main.cipherService, this.main.folderService,
this.main.tokenService, this.main.cryptoService);
const response = await command.run(object, encodedJson, cmd);
this.processResponse(response);
});
@ -352,7 +353,8 @@ export class Program {
})
.action(async (object, id, cmd) => {
await this.exitIfLocked();
const command = new DeleteCommand(this.main.cipherService, this.main.folderService);
const command = new DeleteCommand(this.main.cipherService, this.main.folderService,
this.main.tokenService);
const response = await command.run(object, id, cmd);
this.processResponse(response);
});