mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-20 06:07:55 +00:00
orgs: Stop fetching unnecessary org fields
Halves the amount of org data retrieved to show the list of orgs to select from. Change-type: patch
This commit is contained in:
parent
025c4ef7f2
commit
2e37536e7a
@ -46,7 +46,9 @@ export default class OrgsCmd extends Command {
|
|||||||
const { getOwnOrganizations } = await import('../utils/sdk');
|
const { getOwnOrganizations } = await import('../utils/sdk');
|
||||||
|
|
||||||
// Get organizations
|
// Get organizations
|
||||||
const organizations = await getOwnOrganizations(getBalenaSdk());
|
const organizations = await getOwnOrganizations(getBalenaSdk(), {
|
||||||
|
$select: ['name', 'handle'],
|
||||||
|
});
|
||||||
|
|
||||||
// Display
|
// Display
|
||||||
console.log(
|
console.log(
|
||||||
|
Loading…
Reference in New Issue
Block a user