Forráskód Böngészése

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

Alex 2 éve
szülő
commit
cc3ffcbb84
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      server/apps/immich/src/api-v1/asset/asset.service.ts

+ 1 - 1
server/apps/immich/src/api-v1/asset/asset.service.ts

@@ -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');