reformat expression
This commit is contained in:
parent
dd3d562a1e
commit
493775ad7b
1 changed files with 3 additions and 2 deletions
|
@ -47,7 +47,7 @@ export class CleanRemoteFilesProcessorService {
|
|||
isLink: false,
|
||||
...(cursor ? { id: MoreThan(cursor) } : {}),
|
||||
},
|
||||
take: 256, // Adjust the batch size as needed
|
||||
take: 256,
|
||||
order: {
|
||||
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}.`);
|
||||
|
|
Loading…
Reference in a new issue