mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:29:32 -05:00 
			
		
		
		
	Merge pull request #794 from immich-app/792-bug-encoded-videos-are-not-removed-when-original-asset-is-deleted
fix(server): Delete encoded video when deleting file
This commit is contained in:
		
						commit
						d52da8bbea
					
				@ -46,6 +46,14 @@ export class BackgroundTaskProcessor {
 | 
				
			|||||||
          }
 | 
					          }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      if (asset.encodedVideoPath) {
 | 
				
			||||||
 | 
					        fs.unlink(asset.encodedVideoPath, (err) => {
 | 
				
			||||||
 | 
					          if (err) {
 | 
				
			||||||
 | 
					            console.log('error deleting ', asset.encodedVideoPath);
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user