Răsfoiți Sursa

do not check isPageBulkExportEnabled inside PageBulkExportJobCleanUpCronService

Futa Arai 1 an în urmă
părinte
comite
5e3bcbcbc1

+ 1 - 2
apps/app/src/features/page-bulk-export/server/service/page-bulk-export-job-clean-up-cron.ts

@@ -30,8 +30,7 @@ class PageBulkExportJobCleanUpCronService extends CronService {
   }
 
   override async executeJob(): Promise<void> {
-    const isPageBulkExportEnabled = configManager.getConfig('crowi', 'app:isPageBulkExportEnabled');
-    if (!isPageBulkExportEnabled) return;
+    // Execute cleanup even if isPageBulkExportEnabled is false, to cleanup jobs which were created before bulk export was disabled
 
     await this.deleteExpiredExportJobs();
     await this.deleteDownloadExpiredExportJobs();