upadted util name to sortFilesIntoCollections

This commit is contained in:
Abhinav-grd 2021-04-11 21:21:04 +05:30
parent 539ab66bc1
commit 208b8918d9
2 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@ import { getToken } from 'utils/common/key';
import {
fileIsHEIC,
convertHEIC2JPEG,
sortFilesIntoCollection,
sortFilesIntoCollections,
} from 'utils/file';
const ENDPOINT = getEndpoint();
@ -148,7 +148,7 @@ class UploadService {
this.setUploadErrors = setUploadErrors;
this.metadataMap = new Map<string, object>();
this.progressBarProps = progressBarProps;
this.existingFilesCollectionWise = sortFilesIntoCollection(
this.existingFilesCollectionWise = sortFilesIntoCollections(
existingFiles
);

View file

@ -32,7 +32,7 @@ export function fileIsHEIC(name: string) {
return name.endsWith(TYPE_HEIC);
}
export function sortFilesIntoCollection(files: file[]) {
export function sortFilesIntoCollections(files: file[]) {
const collectionWiseFiles = new Map<number, file[]>();
for (let file of files) {
if (!collectionWiseFiles.has(file.collectionID)) {