1
0
mirror of https://github.com/bitwarden/cli synced 2025-12-11 13:53:25 +00:00

update jslib (#293)

* update jslib

* update jslib
This commit is contained in:
Matt Gibson
2021-04-21 14:24:59 -05:00
committed by GitHub
parent 754dfe9d80
commit 21ca15fb84
2 changed files with 3 additions and 3 deletions

2
jslib

Submodule jslib updated: 0a0cdaa7fd...3c872e56f2

View File

@@ -30,7 +30,7 @@ import { CipherView } from 'jslib/models/view/cipherView';
import { CollectionView } from 'jslib/models/view/collectionView'; import { CollectionView } from 'jslib/models/view/collectionView';
import { FolderView } from 'jslib/models/view/folderView'; import { FolderView } from 'jslib/models/view/folderView';
import { CipherString } from 'jslib/models/domain/cipherString'; import { EncString } from 'jslib/models/domain/encString';
import { Response } from 'jslib/cli/models/response'; import { Response } from 'jslib/cli/models/response';
import { MessageResponse } from 'jslib/cli/models/response/messageResponse'; import { MessageResponse } from 'jslib/cli/models/response/messageResponse';
@@ -364,7 +364,7 @@ export class GetCommand extends DownloadCommand {
const response = await this.apiService.getCollectionDetails(options.organizationid, id); const response = await this.apiService.getCollectionDetails(options.organizationid, id);
const decCollection = new CollectionView(response); const decCollection = new CollectionView(response);
decCollection.name = await this.cryptoService.decryptToUtf8( decCollection.name = await this.cryptoService.decryptToUtf8(
new CipherString(response.name), orgKey); new EncString(response.name), orgKey);
const groups = response.groups == null ? null : const groups = response.groups == null ? null :
response.groups.map(g => new SelectionReadOnly(g.id, g.readOnly, g.hidePasswords)); response.groups.map(g => new SelectionReadOnly(g.id, g.readOnly, g.hidePasswords));
const res = new OrganizationCollectionResponse(decCollection, groups); const res = new OrganizationCollectionResponse(decCollection, groups);