Skip to content

Commit

Permalink
Merge pull request #143 from plivo/sup_1119
Browse files Browse the repository at this point in the history
Skip end_time param from snake casing
  • Loading branch information
nixonsam committed Feb 12, 2020
2 parents c36e5ff + 3e4d71c commit 08fde4d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## [4.1.9](https://github.com/plivo/plivo-node/releases/tag/v4.1.9)(2020-02-12)
- Fix end_time_gte param in Retrieve a call API.

## [4.1.8](https://github.com/plivo/plivo-node/releases/tag/v4.1.8)(2019-12-20)
- Add Powerpack support.

Expand Down
6 changes: 6 additions & 0 deletions lib/rest/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ export function camelCaseRequestWrapper(requestFunc) {
let skipParamsFromSnakeCasing = [
'message_time__lt', 'message_time__lte',
'message_time__gt', 'message_time__gte',
'end_time__gt', 'end_time__gte',
'end_time__lt', 'end_time__lte',
'bill_duration__gt', 'bill_duration__gte',
'bill_duration__lt', 'bill_duration__lte',
'add_time__gt', 'add_time__gte',
'add_time__lt', 'add_time__lte',
]
if (skipParamsFromSnakeCasing.indexOf(key) >= 0) {
return key;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "plivo",
"version": "4.1.8",
"version": "4.1.9",
"description": "A Node.js SDK to make voice calls and send SMS using Plivo and to generate Plivo XML",
"homepage": "https://github.com/plivo/plivo-node",
"files": [
Expand Down

0 comments on commit 08fde4d

Please sign in to comment.