Skip to content

Commit

Permalink
chore: adding check for undefined pathType (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 authored Jun 27, 2024
1 parent 41c4020 commit fd203c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/hooks/init/twilio-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class TwilioRestApiPlugin extends Plugin {
actionDefinition.resource = actionDefinition.domain.paths[actionDefinition.path];
actionDefinition.topicName = BASE_TOPIC_NAME + TOPIC_SEPARATOR + getTopicName(actionDefinition);

if (actionDefinition.resource.pathType === undefined) return;
const pathType = actionDefinition.resource.pathType.toLowerCase();

Object.keys(actionDefinition.resource.operations).forEach((methodName) => {
Expand Down

0 comments on commit fd203c9

Please sign in to comment.