Skip to content

Commit

Permalink
PineOptions Release
Browse files Browse the repository at this point in the history
Change-type: patch
  • Loading branch information
myarmolinsky committed Dec 3, 2024
1 parent 05dabac commit c0fd03b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/commands/release/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default class ReleaseCmd extends Command {
balena: BalenaSdk.BalenaSDK,
options: FlagsDef,
) {
const fields: Array<keyof BalenaSdk.Release> = [
const fields = [
'id',
'commit',
'created_at',
Expand All @@ -96,7 +96,7 @@ export default class ReleaseCmd extends Command {
'build_log',
'start_timestamp',
'end_timestamp',
];
] satisfies BalenaSdk.PineOptions<BalenaSdk.Release>['$select'];

const release = await balena.models.release.get(commitOrId, {
...(!options.json && { $select: fields }),
Expand Down
4 changes: 2 additions & 2 deletions src/commands/release/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<keyof BalenaSdk.Release> = [
const fields = [
'id',
'commit',
'created_at',
'status',
'semver',
'is_final',
];
] satisfies BalenaSdk.PineOptions<BalenaSdk.Release>['$select'];

const balena = getBalenaSdk();
const { getFleetSlug } = await import('../../utils/sdk');
Expand Down

0 comments on commit c0fd03b

Please sign in to comment.