Fixed S3 delete chain init.

This commit is contained in:
DebaucheryLibrarian 2025-03-04 04:10:41 +01:00
parent d62c499022
commit bce340e3c2
1 changed files with 1 additions and 1 deletions

View File

@ -1025,7 +1025,7 @@ async function deleteS3Objects(allMedia) {
logger.info(`Removed ${status.Deleted.length} media files from S3 bucket '${config.s3.bucket}', ${status.Errors?.length || 0} errors`);
return acc.concat(status);
}, Promise.resolve()).catch((error) => {
}, Promise.resolve([])).catch((error) => {
logger.error(`Failed to delete S3 objects: ${error.message}`);
throw error;
});