This commit is contained in:
Kyle Spearrin 2018-07-06 12:55:48 -04:00
parent 7f8ed5a928
commit b9a15d7ced
1 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ import { Collection } from '../models/domain/collection';
import { CipherData } from '../models/data/cipherData';
import { CollectionData } from '../models/data/collectionData';
import { CollectionDetailsResponse } from '../models/response/collectionResponse';
export class ExportService implements ExportServiceAbstraction {
constructor(private folderService: FolderService, private cipherService: CipherService,
@ -75,7 +76,7 @@ export class ExportService implements ExportServiceAbstraction {
const collectionPromises: any = [];
if (collections != null && collections.data != null && collections.data.length > 0) {
collections.data.forEach((c) => {
const collection = new Collection(new CollectionData(c));
const collection = new Collection(new CollectionData(c as CollectionDetailsResponse));
collectionPromises.push(collection.decrypt().then((decCol) => {
decCollections.push(decCol);
}));