This commit is contained in:
Rushikesh Tote 2022-06-23 19:26:46 +05:30
parent d3242dbfa5
commit 087a35f6a3
2 changed files with 3 additions and 3 deletions

View file

@ -6,7 +6,7 @@ import {
sortFiles, sortFiles,
preservePhotoswipeProps, preservePhotoswipeProps,
decryptFile, decryptFile,
changeMagicMetadataFilePaths, changeFilePaths,
} from 'utils/file'; } from 'utils/file';
import { logError } from 'utils/sentry'; import { logError } from 'utils/sentry';
import { getMetadataJSONMapKey, parseMetadataJSON } from './metadataService'; import { getMetadataJSONMapKey, parseMetadataJSON } from './metadataService';
@ -344,7 +344,7 @@ class UploadManager {
const filePaths = UploadService.getFileMetadataAndFileTypeInfo( const filePaths = UploadService.getFileMetadataAndFileTypeInfo(
fileWithCollection.localID fileWithCollection.localID
).magicMetadata.filePaths; ).magicMetadata.filePaths;
await changeMagicMetadataFilePaths( await changeFilePaths(
fileUploadResult, fileUploadResult,
uploadedFile, uploadedFile,
fileWithCollection.collection.key, fileWithCollection.collection.key,

View file

@ -454,7 +454,7 @@ export async function changeFileName(file: EnteFile, editedName: string) {
return file; return file;
} }
export const changeMagicMetadataFilePaths = async ( export const changeFilePaths = async (
fileUploadResult: UPLOAD_RESULT, fileUploadResult: UPLOAD_RESULT,
file: EnteFile, file: EnteFile,
collectionKey: string, collectionKey: string,