Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Dig a gully on the side

Manav Rathid1069dcfbb6f
diff --git a/web/apps/photos/src/types/upload/index.ts b/web/apps/photos/src/types/upload/index.ts
index 35164ec470..78b46670c6 100644
--- a/web/apps/photos/src/types/upload/index.ts
+++ b/web/apps/photos/src/types/upload/index.ts
@@ -105,6 +105,23 @@ export interface FileWithCollection extends UploadAsset {
collectionID?: number;
}
+export interface UploadAsset2 {
+ isLivePhoto?: boolean;
+ file?: File | ElectronFile | string;
+ livePhotoAssets?: LivePhotoAssets2;
+}
+
+export interface LivePhotoAssets2 {
+ image: File | ElectronFile | string;
+ video: File | ElectronFile | string;
+}
+
+export interface FileWithCollection2 extends UploadAsset2 {
+ localID: number;
+ collection?: Collection;
+ collectionID?: number;
+}
+
export type ParsedMetadataJSONMap = Map<string, ParsedMetadataJSON>;
export interface UploadURL {
diff --git a/web/apps/photos/src/utils/upload/index.ts b/web/apps/photos/src/utils/upload/index.ts
index 87d885c274..580fe8706d 100644
--- a/web/apps/photos/src/utils/upload/index.ts
+++ b/web/apps/photos/src/utils/upload/index.ts
@@ -204,7 +204,8 @@ export function groupFilesBasedOnParentFolder(
if (!collectionNameToFilesMap.has(folderName)) {
collectionNameToFilesMap.set(folderName, []);
}
- collectionNameToFilesMap.get(folderName).push(file);
+ // TODO: Remove the cast
+ collectionNameToFilesMap.get(folderName).push(file as any);
}
return collectionNameToFilesMap;
}