fix(server): incorrect video file path to serve for mobile vs web (#2118)

This commit is contained in:
Alex 2023-03-29 12:36:18 -05:00 committed by GitHub
parent eda9e580c9
commit cc3ffcbb84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -314,7 +314,7 @@ export class AssetService {
return new StreamableFile(videoStream);
}
return this.streamFile(asset.originalPath, res, headers, mimeType);
return this.streamFile(videoPath, res, headers, mimeType);
} catch (e) {
this.logger.error(`Error serving VIDEO asset=${asset.id}`);
throw new InternalServerErrorException(`Failed to serve video asset ${e}`, 'ServeFile');