diff --git a/src/services/upload/uploadManager.ts b/src/services/upload/uploadManager.ts index 0b887e6c6..b62858e92 100644 --- a/src/services/upload/uploadManager.ts +++ b/src/services/upload/uploadManager.ts @@ -9,7 +9,7 @@ import { import { logError } from 'utils/sentry'; import { getMetadataJSONMapKey, parseMetadataJSON } from './metadataService'; import { - areSameFileWithCollections, + areFileWithCollectionsSame, getFileNameSize, segregateMetadataAndMediaFiles, } from 'utils/upload'; @@ -344,7 +344,7 @@ class UploadManager { if (fileUploadResult !== null && isElectron()) { this.remainingFiles = this.remainingFiles.filter( (file) => - !areSameFileWithCollections(file, fileWithCollection) + !areFileWithCollectionsSame(file, fileWithCollection) ); ImportService.updatePendingUploads(this.remainingFiles); } diff --git a/src/utils/upload/index.ts b/src/utils/upload/index.ts index f5ecc4722..2cfbb9e21 100644 --- a/src/utils/upload/index.ts +++ b/src/utils/upload/index.ts @@ -81,7 +81,7 @@ export function getFileNameSize(file: File | ElectronFile) { return `${file.name}_${convertBytesToHumanReadable(file.size)}`; } -export function areSameFileWithCollections( +export function areFileWithCollectionsSame( firstFile: FileWithCollection, secondFile: FileWithCollection ): boolean {