rename
This commit is contained in:
parent
d3242dbfa5
commit
087a35f6a3
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue