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:
Thodoris Greasidis 2023-05-20 00:21:58 +03:00
parent 025c4ef7f2
commit 2e37536e7a

View File

@ -46,7 +46,9 @@ export default class OrgsCmd extends Command {
const { getOwnOrganizations } = await import('../utils/sdk');
// Get organizations
const organizations = await getOwnOrganizations(getBalenaSdk());
const organizations = await getOwnOrganizations(getBalenaSdk(), {
$select: ['name', 'handle'],
});
// Display
console.log(