chore: Update balena-lint

Change-type: patch
This commit is contained in:
Paulo Castro
2021-07-20 14:57:00 +01:00
parent e552e36f7b
commit 3a871a0003
32 changed files with 857 additions and 519 deletions

View File

@ -268,13 +268,11 @@ export async function awaitDeviceOsUpdate(
progressBar.update({ percentage: 0 });
const poll = async (): Promise<void> => {
const [
osUpdateStatus,
{ overall_progress: osUpdateProgress },
] = await Promise.all([
balena.models.device.getOsUpdateStatus(uuid),
balena.models.device.get(uuid, { $select: 'overall_progress' }),
]);
const [osUpdateStatus, { overall_progress: osUpdateProgress }] =
await Promise.all([
balena.models.device.getOsUpdateStatus(uuid),
balena.models.device.get(uuid, { $select: 'overall_progress' }),
]);
if (osUpdateStatus.status === 'done') {
console.info(
`The device ${deviceName} has been updated to v${targetOsVersion} and will restart shortly!`,