Add encrypted hint json property (#1184)

This commit is contained in:
Matt Gibson 2020-12-18 16:17:04 -06:00 committed by GitHub
parent ef4b53b337
commit e0191c573d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,6 +162,7 @@ namespace Bit.Core.Services
{
var jsonDoc = new
{
Encrypted = false,
Folders = decryptedFolders.Where(f => f.Id != null).Select(f => new FolderWithId(f)),
Items = decryptedCiphers.Where(c => c.OrganizationId == null)
.Select(c => new CipherWithId(c) { CollectionIds = null })
@ -179,6 +180,7 @@ namespace Bit.Core.Services
{
var jsonDoc = new
{
Encrypted = true,
Folders = folders,
Items = ciphers,
};