fix(server): transcodes failing due to storage migration happening simultaneously (#3071)

This commit is contained in:
Mert
2023-07-05 01:36:16 -04:00
committed by GitHub
parent 0d30ceb284
commit 71a2914f3e
5 changed files with 26 additions and 7 deletions

View File

@@ -128,7 +128,7 @@ export class MediaService {
async handleVideoConversion({ id }: IEntityJob) {
const [asset] = await this.assetRepository.getByIds([id]);
if (!asset) {
if (!asset || asset.type !== AssetType.VIDEO) {
return false;
}