mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-22 14:05:12 +00:00
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,
|
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 a new issue