mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-20 06:07:55 +00:00
Replace device should_be_running__release
with is_pinned_on__release
This commit is contained in:
parent
2b656c23b3
commit
19be0fec1a
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user