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, { const device = await balena.models.device.get(params.uuid, {
$expand: { $expand: {
should_be_running__release: { is_pinned_on__release: {
$select: 'commit', $select: 'commit',
}, },
belongs_to__application: { belongs_to__application: {
@ -66,7 +66,7 @@ export default class DevicePinCmd extends Command {
}); });
const pinnedRelease = getExpandedProp( const pinnedRelease = getExpandedProp(
device.should_be_running__release, device.is_pinned_on__release,
'commit', 'commit',
); );
const appSlug = getExpandedProp(device.belongs_to__application, 'slug'); const appSlug = getExpandedProp(device.belongs_to__application, 'slug');