rename
This commit is contained in:
parent
02f6c353aa
commit
54f914453e
|
@ -357,7 +357,7 @@ export default function Upload(props: Props) {
|
|||
filesWithCollectionToUpload,
|
||||
collections
|
||||
);
|
||||
await watchService.allUploadsDone(
|
||||
await watchService.allFileUploadsDone(
|
||||
filesWithCollectionToUpload,
|
||||
collections
|
||||
);
|
||||
|
|
|
@ -407,7 +407,7 @@ class UploadManager {
|
|||
FileUploadResults.UPLOADED_WITH_STATIC_THUMBNAIL ||
|
||||
fileUploadResult === FileUploadResults.ALREADY_UPLOADED
|
||||
) {
|
||||
await watchService.fileUploadDone(
|
||||
await watchService.fileUploaded(
|
||||
fileWithCollection,
|
||||
uploadedFile
|
||||
);
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue