The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Switch default remote to lastly added remote (#19697)
martmull3463ee5dc476
diff --git a/packages/twenty-sdk/src/cli/commands/remote.ts b/packages/twenty-sdk/src/cli/commands/remote.tsindex 839c3a0b5ac..ef41b49d60d 100644--- a/packages/twenty-sdk/src/cli/commands/remote.ts+++ b/packages/twenty-sdk/src/cli/commands/remote.ts@@ -94,6 +94,9 @@ export const registerRemoteCommands = (program: Command): void => {ConfigService.setActiveRemote(options.as);await authenticate(config.apiUrl, options.apiKey);+ await configService.setDefaultRemote(options.as);+ console.log(chalk.green(`✓ Default remote set to "${options.as}".`));+return;}@@ -142,11 +145,8 @@ export const registerRemoteCommands = (program: Command): void => {ConfigService.setActiveRemote(name);await authenticate(apiUrl, options.apiKey);- const defaultRemote = await configService.getDefaultRemote();-- if (defaultRemote === 'local') {- await configService.setDefaultRemote(name);- }+ await configService.setDefaultRemote(name);+ console.log(chalk.green(`✓ Default remote set to "${name}".`));},);