mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-04 03:27:09 -05:00 
			
		
		
		
	fix: cli upload deletes files that failed uploading (#19140)
This commit is contained in:
		
							parent
							
								
									176656b5f4
								
							
						
					
					
						commit
						bddb43e1d4
					
				@ -70,7 +70,10 @@ const uploadBatch = async (files: string[], options: UploadOptionsDto) => {
 | 
				
			|||||||
    console.log(JSON.stringify({ newFiles, duplicates, newAssets }, undefined, 4));
 | 
					    console.log(JSON.stringify({ newFiles, duplicates, newAssets }, undefined, 4));
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  await updateAlbums([...newAssets, ...duplicates], options);
 | 
					  await updateAlbums([...newAssets, ...duplicates], options);
 | 
				
			||||||
  await deleteFiles(newFiles, options);
 | 
					  await deleteFiles(
 | 
				
			||||||
 | 
					    newAssets.map(({ filepath }) => filepath),
 | 
				
			||||||
 | 
					    options,
 | 
				
			||||||
 | 
					  );
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const startWatch = async (
 | 
					export const startWatch = async (
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user