reformat expression
This commit is contained in:
parent
dd3d562a1e
commit
493775ad7b
|
@ -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}.`);
|
||||||
|
|
Loading…
Reference in New Issue