From 1ffa905f9984a23ad0067f07cc6d48dc7939712a Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Sat, 13 Apr 2024 17:00:50 +0530 Subject: [PATCH] Inline 2 --- web/apps/photos/src/services/export/index.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/web/apps/photos/src/services/export/index.ts b/web/apps/photos/src/services/export/index.ts index f5e06bc93..9f61e05db 100644 --- a/web/apps/photos/src/services/export/index.ts +++ b/web/apps/photos/src/services/export/index.ts @@ -1110,7 +1110,7 @@ class ExportService { file, ); await ensureElectron().saveStreamToDisk( - getFileExportPath(collectionExportPath, imageExportName), + `${collectionExportPath}/${imageExportName}`, imageStream, ); @@ -1122,12 +1122,12 @@ class ExportService { ); try { await ensureElectron().saveStreamToDisk( - getFileExportPath(collectionExportPath, videoExportName), + `${collectionExportPath}/${videoExportName}`, videoStream, ); } catch (e) { await ensureElectron().deleteFile( - getFileExportPath(collectionExportPath, imageExportName), + `${collectionExportPath}/${imageExportName}`, ); throw e; } @@ -1192,8 +1192,3 @@ class ExportService { } export default new ExportService(); - -export const getFileExportPath = ( - collectionExportPath: string, - fileExportName: string, -) => `${collectionExportPath}/${fileExportName}`;