Skip to content

Commit

Permalink
chore: added support for SafeList query params
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 committed Dec 14, 2023
1 parent 52d8012 commit a66e440
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/hooks/init/twilio-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ class TwilioRestApiPlugin extends Plugin {
Object.keys(actionDefinition.resource.operations).forEach((methodName) => {
actionDefinition.methodName = methodName;
actionDefinition.actionName = METHOD_TO_ACTION_MAP[pathType][methodName];
if (
actionDefinition.actionName !== 'create' &&
pathType === 'list' &&
'delete' in actionDefinition.resource.operations
) {
actionDefinition.actionName = METHOD_TO_ACTION_MAP.instance[methodName];
}
this.scanAction(actionDefinition);
}, this);
}
Expand Down

0 comments on commit a66e440

Please sign in to comment.