mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-20 17:52:51 +00:00
Merge pull request #1908 from balena-os/status-missing
Always add status to image download report
This commit is contained in:
commit
50d6fd4452
@ -193,7 +193,11 @@ export async function triggerFetch(
|
||||
}
|
||||
|
||||
const onProgress = (progress: FetchProgressEvent) => {
|
||||
reportEvent('update', { ...image, downloadProgress: progress.percentage });
|
||||
reportEvent('update', {
|
||||
...image,
|
||||
downloadProgress: progress.percentage,
|
||||
status: 'Downloading',
|
||||
});
|
||||
};
|
||||
|
||||
let success: boolean;
|
||||
@ -261,7 +265,7 @@ export async function triggerFetch(
|
||||
}
|
||||
}
|
||||
|
||||
reportEvent('finish', image);
|
||||
reportEvent('finish', { ...image, status: 'Downloaded' });
|
||||
onFinish(success);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user