mirror of
https://github.com/immich-app/immich.git
synced 2025-01-19 18:26:46 +01: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
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