From 2e37536e7a53ddc331a894c2e292736b354c27f1 Mon Sep 17 00:00:00 2001 From: Thodoris Greasidis Date: Sat, 20 May 2023 00:21:58 +0300 Subject: [PATCH] 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 --- lib/commands/orgs.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/commands/orgs.ts b/lib/commands/orgs.ts index 58918091..e91db61c 100644 --- a/lib/commands/orgs.ts +++ b/lib/commands/orgs.ts @@ -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(