Skip to content

Commit

Permalink
feature: add support for multi region param
Browse files Browse the repository at this point in the history
  • Loading branch information
ShayElkana committed May 26, 2024
1 parent 88f2843 commit 86ece06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/app/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ export default class AppDeploy extends AuthenticatedCommand {
public async run(): Promise<void> {
try {
const { flags } = await this.parse(AppDeploy);
const { directoryPath, appId, appVersionId, region: strRegion, force } = flags;
const region = getRegionFromString(strRegion);
const { directoryPath, appId, appVersionId, force } = flags;
const region = getRegionFromString(flags?.region);
const manifestFileDir = directoryPath || getCurrentWorkingDirectory();
const manifestFileData = readManifestFile(manifestFileDir);
flags.appId = appId || manifestFileData.app.id;
Expand Down

0 comments on commit 86ece06

Please sign in to comment.