Replace device should_be_running__release with is_pinned_on__release

This commit is contained in:
myarmolinsky 2024-09-16 11:26:20 -04:00
parent 2b656c23b3
commit 19be0fec1a

View File

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