This commit is contained in:
Rushikesh Tote 2022-06-05 22:20:56 +05:30
parent 02f6c353aa
commit 54f914453e
3 changed files with 4 additions and 9 deletions

View file

@ -357,7 +357,7 @@ export default function Upload(props: Props) {
filesWithCollectionToUpload,
collections
);
await watchService.allUploadsDone(
await watchService.allFileUploadsDone(
filesWithCollectionToUpload,
collections
);

View file

@ -407,7 +407,7 @@ class UploadManager {
FileUploadResults.UPLOADED_WITH_STATIC_THUMBNAIL ||
fileUploadResult === FileUploadResults.ALREADY_UPLOADED
) {
await watchService.fileUploadDone(
await watchService.fileUploaded(
fileWithCollection,
uploadedFile
);

View file

@ -150,10 +150,7 @@ class WatchService {
);
}
async fileUploadDone(
fileWithCollection: FileWithCollection,
file: EnteFile
) {
async fileUploaded(fileWithCollection: FileWithCollection, file: EnteFile) {
if (fileWithCollection.isLivePhoto) {
this.pathToIDMap.set(
(fileWithCollection.livePhotoAssets.image as ElectronFile).path,
@ -171,7 +168,7 @@ class WatchService {
}
}
async allUploadsDone(
async allFileUploadsDone(
filesWithCollection: FileWithCollection[],
collections: Collection[]
) {
@ -239,8 +236,6 @@ class WatchService {
);
mapping.files = [...mapping.files, ...uploadedFiles];
console.log('new mappings', mappings);
this.ElectronAPIs.setWatchMappings(mappings);
this.syncWithRemote();