Skip to content

Commit

Permalink
fix: commands with actions without parameters (twilio#230)
Browse files Browse the repository at this point in the history
`conversations:v1:configuration:fetch` command doesn't have
any parameter, therefore parameters property is not defined in
the OpenAPI spec.
This commit fixes the assumption that all the actions have parameters.
  • Loading branch information
sergiofbsilva authored Nov 24, 2020
1 parent aaf65ea commit 45b766c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/twilio-api/api-command-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class ApiCommandRunner {

async execute() {
const { domainName, path, actionName } = this.actionDefinition;
const actionParams = this.actionDefinition.action.parameters;
const actionParams = this.actionDefinition.action.parameters || [];

logger.debug(`domainName=${domainName}, path=${path}, actionName=${actionName}`);

Expand Down

0 comments on commit 45b766c

Please sign in to comment.