1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-05 09:10:53 +01:00

index organizationid for search

This commit is contained in:
Kyle Spearrin 2018-10-30 11:03:41 -04:00
parent a98a8bda9b
commit 2c4005d4c7

View File

@ -62,6 +62,7 @@ export class SearchService implements SearchServiceAbstraction {
(builder as any).field('attachments', { extractor: (c: CipherView) => this.attachmentExtractor(c, false) });
(builder as any).field('attachments_joined',
{ extractor: (c: CipherView) => this.attachmentExtractor(c, true) });
(builder as any).field('organizationid', { extractor: (c: CipherView) => c.organizationId });
const ciphers = await this.cipherService.getAllDecrypted();
ciphers.forEach((c) => builder.add(c));
this.index = builder.build();