Manav Rathi 1 năm trước cách đây
mục cha
commit
1ffa905f99
1 tập tin đã thay đổi với 3 bổ sung8 xóa
  1. 3 8
      web/apps/photos/src/services/export/index.ts

+ 3 - 8
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}`;