From 5a79658e582b05ddbd0e41d32e45239cb1b680ff Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Mon, 22 Jul 2024 11:39:59 +0530 Subject: [PATCH] Tweak --- web/apps/photos/src/utils/file/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/apps/photos/src/utils/file/index.ts b/web/apps/photos/src/utils/file/index.ts index 630859c751..1de404b14b 100644 --- a/web/apps/photos/src/utils/file/index.ts +++ b/web/apps/photos/src/utils/file/index.ts @@ -468,9 +468,8 @@ async function downloadFileDesktop( downloadDir: string, ) { const fs = electron.fs; - const stream = (await DownloadManager.getFile( - file, - )) as ReadableStream; + + const stream = await DownloadManager.getFile(file); const updatedStream = await getUpdatedEXIFFileForDownload(file, stream); if (file.metadata.fileType === FILE_TYPE.LIVE_PHOTO) {