From 19be0fec1a99ae0076abc65cf40fb8c8168af734 Mon Sep 17 00:00:00 2001 From: myarmolinsky Date: Mon, 16 Sep 2024 11:26:20 -0400 Subject: [PATCH] Replace device `should_be_running__release` with `is_pinned_on__release` --- src/commands/device/pin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/device/pin.ts b/src/commands/device/pin.ts index dae13ddf..cbe896de 100644 --- a/src/commands/device/pin.ts +++ b/src/commands/device/pin.ts @@ -56,7 +56,7 @@ export default class DevicePinCmd extends Command { const device = await balena.models.device.get(params.uuid, { $expand: { - should_be_running__release: { + is_pinned_on__release: { $select: 'commit', }, belongs_to__application: { @@ -66,7 +66,7 @@ export default class DevicePinCmd extends Command { }); const pinnedRelease = getExpandedProp( - device.should_be_running__release, + device.is_pinned_on__release, 'commit', ); const appSlug = getExpandedProp(device.belongs_to__application, 'slug');