From 21ca15fb84f526372eca805ad78cf13dc0a58b4d Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Wed, 21 Apr 2021 14:24:59 -0500 Subject: [PATCH] update jslib (#293) * update jslib * update jslib --- jslib | 2 +- src/commands/get.command.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jslib b/jslib index 0a0cdaa7fdf..3c872e56f27 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 0a0cdaa7fdfb7322c73258b270105c8fb6552b99 +Subproject commit 3c872e56f27ae78fb922b765d7601886b5c39f78 diff --git a/src/commands/get.command.ts b/src/commands/get.command.ts index 5d0ed6e6aa3..bbe4e7b4339 100644 --- a/src/commands/get.command.ts +++ b/src/commands/get.command.ts @@ -30,7 +30,7 @@ import { CipherView } from 'jslib/models/view/cipherView'; import { CollectionView } from 'jslib/models/view/collectionView'; 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 { 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 decCollection = new CollectionView(response); decCollection.name = await this.cryptoService.decryptToUtf8( - new CipherString(response.name), orgKey); + new EncString(response.name), orgKey); const groups = response.groups == null ? null : response.groups.map(g => new SelectionReadOnly(g.id, g.readOnly, g.hidePasswords)); const res = new OrganizationCollectionResponse(decCollection, groups);