fix migration

This commit is contained in:
Abhinav 2023-04-27 15:50:20 +05:30
parent 6c37ee6a04
commit ec328a6a25

View file

@ -117,13 +117,6 @@ async function migrationV2ToV3(
exportRecord: ExportRecordV2,
updateExportRecord: UpdatedExportRecord
) {
addLocalLog(() => `migrationV2ToV3: ${JSON.stringify(exportRecord)}`);
await extractExportDirPathPrefix(
exportDir,
exportRecord,
updateExportRecord
);
addLocalLog(() => `migrationV2ToV3: ${JSON.stringify(exportRecord)}`);
const user: User = getData(LS_KEYS.USER);
const localFiles = await getLocalFiles();
const personalFiles = getIDBasedSortedFiles(
@ -140,6 +133,11 @@ async function migrationV2ToV3(
updateExportRecord,
getExportedFiles(personalFiles, exportRecord)
);
await extractExportDirPathPrefix(
exportDir,
exportRecord,
updateExportRecord
);
}
export async function removeDeprecatedExportRecordProperties(