Procházet zdrojové kódy

fix createAndExecuteOrRestartBulkExportJob param order

Futa Arai před 1 rokem
rodič
revize
e33b2b62ea

+ 1 - 1
apps/app/src/features/page-bulk-export/server/routes/apiv3/page-bulk-export.ts

@@ -42,7 +42,7 @@ module.exports = (crowi: Crowi): Router => {
     };
     };
 
 
     try {
     try {
-      await pageBulkExportService?.createAndExecuteOrRestartBulkExportJob(path, req.user, restartJob, activityParameters);
+      await pageBulkExportService?.createAndExecuteOrRestartBulkExportJob(path, req.user, activityParameters, restartJob);
       return res.apiv3({}, 204);
       return res.apiv3({}, 204);
     }
     }
     catch (err) {
     catch (err) {

+ 1 - 1
apps/app/src/features/page-bulk-export/server/service/page-bulk-export/index.ts

@@ -75,7 +75,7 @@ class PageBulkExportService {
   /**
   /**
    * Create a new page bulk export job and execute it
    * Create a new page bulk export job and execute it
    */
    */
-  async createAndExecuteOrRestartBulkExportJob(basePagePath: string, currentUser, restartJob = false, activityParameters: ActivityParameters): Promise<void> {
+  async createAndExecuteOrRestartBulkExportJob(basePagePath: string, currentUser, activityParameters: ActivityParameters, restartJob = false): Promise<void> {
     const basePage = await this.pageModel.findByPathAndViewer(basePagePath, currentUser, null, true);
     const basePage = await this.pageModel.findByPathAndViewer(basePagePath, currentUser, null, true);
 
 
     if (basePage == null) {
     if (basePage == null) {