This commit is contained in:
Abhinav 2022-04-12 19:20:19 +05:30
parent 19a5752eff
commit bde91417d3
2 changed files with 3 additions and 3 deletions

View file

@ -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);
}

View file

@ -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 {