1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-28 09:33:27 +02:00

fix(server): Delete encoded video when deleting file

This commit is contained in:
Alex Tran 2022-10-07 08:47:13 -05:00
parent 471a60dcb0
commit cdddcad784
No known key found for this signature in database
GPG Key ID: E4954BC787B85C8A

View File

@ -46,6 +46,14 @@ export class BackgroundTaskProcessor {
}
});
}
if (asset.encodedVideoPath) {
fs.unlink(asset.encodedVideoPath, (err) => {
if (err) {
console.log('error deleting ', asset.encodedVideoPath);
}
});
}
}
}
}