reformat expression

This commit is contained in:
PrivateGER 2024-04-24 16:05:30 +02:00
parent dd3d562a1e
commit 493775ad7b
No known key found for this signature in database
GPG Key ID: 96504F77971811D1
1 changed files with 3 additions and 2 deletions

View File

@ -47,7 +47,7 @@ export class CleanRemoteFilesProcessorService {
isLink: false, isLink: false,
...(cursor ? { id: MoreThan(cursor) } : {}), ...(cursor ? { id: MoreThan(cursor) } : {}),
}, },
take: 256, // Adjust the batch size as needed take: 256,
order: { order: {
id: 1, id: 1,
}, },
@ -72,7 +72,8 @@ export class CleanRemoteFilesProcessorService {
} }
}); });
await job.updateProgress((deletedCount / total) * 100); await job.updateProgress(100 / total * deletedCount);
} }
this.logger.succ(`All cached remote files processed. Total deleted: ${deletedCount}, Failed: ${errorCount}.`); this.logger.succ(`All cached remote files processed. Total deleted: ${deletedCount}, Failed: ${errorCount}.`);