mirror of
https://github.com/immich-app/immich.git
synced 2025-01-01 16:41:59 +00:00
fix(server): Delete encoded video when deleting file
This commit is contained in:
parent
471a60dcb0
commit
cdddcad784
1 changed files with 8 additions and 0 deletions
|
@ -46,6 +46,14 @@ export class BackgroundTaskProcessor {
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (asset.encodedVideoPath) {
|
||||
fs.unlink(asset.encodedVideoPath, (err) => {
|
||||
if (err) {
|
||||
console.log('error deleting ', asset.encodedVideoPath);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue