mirror of
https://github.com/immich-app/immich.git
synced 2025-05-31 12:15:47 -04: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