mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-25 18:54:52 +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…
	
	Add table
		
		Reference in a new issue