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');