From d0bcbcc342377367c6fc8d269267b4024352c843 Mon Sep 17 00:00:00 2001 From: Harshitha D Date: Wed, 28 Aug 2024 12:26:10 +0530 Subject: [PATCH] replaced getDeveloperHubUrl with getter method --- src/base-command.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/base-command.ts b/src/base-command.ts index 4bc5fb6a..f33e43a3 100644 --- a/src/base-command.ts +++ b/src/base-command.ts @@ -79,7 +79,8 @@ export abstract class BaseCommand extends Command { this.validateRegionAndAuth(); this.developerHubBaseUrl = - this.sharedConfig.developerHubBaseUrl || getDeveloperHubUrl(); + this.sharedConfig.developerHubBaseUrl || this.developerHubUrl; + if (!this.developerHubBaseUrl) this.developerHubBaseUrl = getDeveloperHubUrl(); await this.initCmaSDK(); await this.initMarketplaceSDK(); }