1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 23:03:32 +00:00

allow gets by search term

This commit is contained in:
Kyle Spearrin
2018-05-16 11:54:59 -04:00
parent df7ccaea9d
commit 0490c6ba3f
4 changed files with 83 additions and 19 deletions

View File

@@ -9,6 +9,10 @@ export class DeleteCommand {
constructor(private cipherService: CipherService, private folderService: FolderService) { }
async run(object: string, id: string, cmd: program.Command): Promise<Response> {
if (id != null) {
id = id.toLowerCase();
}
switch (object.toLowerCase()) {
case 'item':
return await this.deleteCipher(id);