From 8b3235ab2b57aa8240e9e28b871ca0f9501f5445 Mon Sep 17 00:00:00 2001 From: Thodoris Greasidis Date: Sat, 20 May 2023 00:59:20 +0300 Subject: [PATCH] device register: Stop fetching unnecessary app fields Change-type: patch --- lib/commands/device/register.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/commands/device/register.ts b/lib/commands/device/register.ts index 8389902f..b3af039e 100644 --- a/lib/commands/device/register.ts +++ b/lib/commands/device/register.ts @@ -78,7 +78,9 @@ export default class DeviceRegisterCmd extends Command { const balena = getBalenaSdk(); - const application = await getApplication(balena, params.fleet); + const application = await getApplication(balena, params.fleet, { + $select: ['id', 'slug'], + }); const uuid = options.uuid ?? balena.models.device.generateUniqueKey(); console.info(`Registering to ${application.slug}: ${uuid}`);