diff --git a/src/commands/list.command.ts b/src/commands/list.command.ts index 025978ae5d..c8b3be50a9 100644 --- a/src/commands/list.command.ts +++ b/src/commands/list.command.ts @@ -39,7 +39,7 @@ export class ListCommand { if (cmd.folderid != null || cmd.collectionid != null || cmd.organizationid != null) { ciphers = ciphers.filter((c) => { if (cmd.folderid != null) { - if (cmd.folderid === '!null' && c.folderId != null) { + if (cmd.folderid === 'notnull' && c.folderId != null) { return true; } const folderId = cmd.folderid === 'null' ? null : cmd.folderid; @@ -49,7 +49,7 @@ export class ListCommand { } if (cmd.organizationid != null) { - if (cmd.organizationid === '!null' && c.organizationId != null) { + if (cmd.organizationid === 'notnull' && c.organizationId != null) { return true; } const organizationId = cmd.organizationid === 'null' ? null : cmd.organizationid; @@ -59,7 +59,7 @@ export class ListCommand { } if (cmd.collectionid != null) { - if (cmd.collectionid === '!null' && c.collectionIds != null && c.collectionIds.length > 0) { + if (cmd.collectionid === 'notnull' && c.collectionIds != null && c.collectionIds.length > 0) { return true; } const collectionId = cmd.collectionid === 'null' ? null : cmd.collectionid; diff --git a/src/program.ts b/src/program.ts index fcf4365a93..5aee535e74 100644 --- a/src/program.ts +++ b/src/program.ts @@ -221,8 +221,8 @@ export class Program { writeLn(' bw list items --folderid 60556c31-e649-4b5d-8daf-fc1c391a1bf2'); writeLn(' bw list items --search google --folderid 60556c31-e649-4b5d-8daf-fc1c391a1bf2'); writeLn(' bw list items --folderid null'); - writeLn(' bw list items --organizationid !null'); - writeLn(' bw list items --folderid 60556c31-e649-4b5d-8daf-fc1c391a1bf2 --organizationid !null'); + writeLn(' bw list items --organizationid notnull'); + writeLn(' bw list items --folderid 60556c31-e649-4b5d-8daf-fc1c391a1bf2 --organizationid notnull'); writeLn(' bw list folders --search email'); writeLn('', true); })