mirror of
https://github.com/immich-app/immich.git
synced 2025-12-19 09:13:14 +03:00
deps: open-api generator (#6655)
* deps: open-api generator * fix: unused sed/replace
This commit is contained in:
@@ -125,7 +125,7 @@ export const downloadFile = async (asset: AssetResponseDto) => {
|
||||
{ id, key: api.getKey() },
|
||||
{
|
||||
responseType: 'blob',
|
||||
onDownloadProgress: (event: ProgressEvent) => {
|
||||
onDownloadProgress: ({ event }) => {
|
||||
if (event.lengthComputable) {
|
||||
downloadManager.update(downloadKey, event.loaded, event.total);
|
||||
}
|
||||
|
||||
@@ -83,7 +83,8 @@ async function fileUploader(asset: File, albumId: string | undefined = undefined
|
||||
key: api.getKey(),
|
||||
},
|
||||
{
|
||||
onUploadProgress: ({ loaded, total }) => {
|
||||
onUploadProgress: ({ event }) => {
|
||||
const { loaded, total } = event;
|
||||
uploadAssetsStore.updateProgress(deviceAssetId, loaded, total);
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user