mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
cast fix
This commit is contained in:
parent
7f8ed5a928
commit
b9a15d7ced
@ -16,6 +16,7 @@ import { Collection } from '../models/domain/collection';
|
|||||||
|
|
||||||
import { CipherData } from '../models/data/cipherData';
|
import { CipherData } from '../models/data/cipherData';
|
||||||
import { CollectionData } from '../models/data/collectionData';
|
import { CollectionData } from '../models/data/collectionData';
|
||||||
|
import { CollectionDetailsResponse } from '../models/response/collectionResponse';
|
||||||
|
|
||||||
export class ExportService implements ExportServiceAbstraction {
|
export class ExportService implements ExportServiceAbstraction {
|
||||||
constructor(private folderService: FolderService, private cipherService: CipherService,
|
constructor(private folderService: FolderService, private cipherService: CipherService,
|
||||||
@ -75,7 +76,7 @@ export class ExportService implements ExportServiceAbstraction {
|
|||||||
const collectionPromises: any = [];
|
const collectionPromises: any = [];
|
||||||
if (collections != null && collections.data != null && collections.data.length > 0) {
|
if (collections != null && collections.data != null && collections.data.length > 0) {
|
||||||
collections.data.forEach((c) => {
|
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) => {
|
collectionPromises.push(collection.decrypt().then((decCol) => {
|
||||||
decCollections.push(decCol);
|
decCollections.push(decCol);
|
||||||
}));
|
}));
|
||||||
|
Loading…
Reference in New Issue
Block a user