mirror of
https://github.com/donl/plivo-node.git
synced 2026-05-25 22:07:10 -06:00
Fixed ringTimeout not working bug
This commit is contained in:
parent
0cd20c12e2
commit
b6002f4538
1 changed files with 1 additions and 1 deletions
|
|
@ -246,7 +246,7 @@ export function validRange(paramName, paramValue, mandatory = false, lowerBound
|
|||
return true;
|
||||
}
|
||||
|
||||
if(!expectedType(paramName, Number, paramValue)){
|
||||
if(!expectedType(paramName, [Number], paramValue)){
|
||||
throw new InvalidRequestError(paramName + ": Expected an Integer but received " + paramValue.constructor + " instead")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue