|
@@ -62,7 +62,8 @@ class PageBulkExportJobCronService extends CronService {
|
|
|
});
|
|
});
|
|
|
for (const downloadExpiredExportJob of downloadExpiredExportJobs) {
|
|
for (const downloadExpiredExportJob of downloadExpiredExportJobs) {
|
|
|
try {
|
|
try {
|
|
|
- this.crowi.attachmentService?.removeAttachment(downloadExpiredExportJob.attachment);
|
|
|
|
|
|
|
+ // eslint-disable-next-line no-await-in-loop
|
|
|
|
|
+ await this.crowi.attachmentService?.removeAttachment(downloadExpiredExportJob.attachment);
|
|
|
}
|
|
}
|
|
|
catch (err) {
|
|
catch (err) {
|
|
|
logger.error(err);
|
|
logger.error(err);
|