mirror of
https://github.com/immich-app/immich.git
synced 2025-01-04 02:46:47 +01:00
fix(server): incorrect video file path to serve for mobile vs web (#2118)
This commit is contained in:
parent
eda9e580c9
commit
cc3ffcbb84
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ export class AssetService {
|
||||||
return new StreamableFile(videoStream);
|
return new StreamableFile(videoStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.streamFile(asset.originalPath, res, headers, mimeType);
|
return this.streamFile(videoPath, res, headers, mimeType);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.logger.error(`Error serving VIDEO asset=${asset.id}`);
|
this.logger.error(`Error serving VIDEO asset=${asset.id}`);
|
||||||
throw new InternalServerErrorException(`Failed to serve video asset ${e}`, 'ServeFile');
|
throw new InternalServerErrorException(`Failed to serve video asset ${e}`, 'ServeFile');
|
||||||
|
|
Loading…
Reference in a new issue