This commit is contained in:
Kyle Spearrin 2018-05-21 09:14:58 -04:00
parent beb9887afe
commit 0aa0d89396
2 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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);
})