From c0fd03b7adc1158a6fe5cf1edb2fa73ca868f643 Mon Sep 17 00:00:00 2001 From: myarmolinsky Date: Tue, 3 Dec 2024 08:36:37 -0500 Subject: [PATCH] PineOptions Release Change-type: patch --- src/commands/release/index.ts | 4 ++-- src/commands/release/list.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/release/index.ts b/src/commands/release/index.ts index 0c6cc19ab2..fb221e1d56 100644 --- a/src/commands/release/index.ts +++ b/src/commands/release/index.ts @@ -86,7 +86,7 @@ export default class ReleaseCmd extends Command { balena: BalenaSdk.BalenaSDK, options: FlagsDef, ) { - const fields: Array = [ + const fields = [ 'id', 'commit', 'created_at', @@ -96,7 +96,7 @@ export default class ReleaseCmd extends Command { 'build_log', 'start_timestamp', 'end_timestamp', - ]; + ] satisfies BalenaSdk.PineOptions['$select']; const release = await balena.models.release.get(commitOrId, { ...(!options.json && { $select: fields }), diff --git a/src/commands/release/list.ts b/src/commands/release/list.ts index dace069e67..4c028817b9 100644 --- a/src/commands/release/list.ts +++ b/src/commands/release/list.ts @@ -56,14 +56,14 @@ export default class ReleaseListCmd extends Command { public async run() { const { args: params, flags: options } = await this.parse(ReleaseListCmd); - const fields: Array = [ + const fields = [ 'id', 'commit', 'created_at', 'status', 'semver', 'is_final', - ]; + ] satisfies BalenaSdk.PineOptions['$select']; const balena = getBalenaSdk(); const { getFleetSlug } = await import('../../utils/sdk');