fix: set default value to crmCallDuration is equals 0
parent
6691427b37
commit
9b719a5eae
|
@ -86,8 +86,8 @@ const callJournaling = async (req, res) => {
|
|||
// throw new CustomError.BadRequestError(`The crmCallDuration property must be provided when operation is outboundAsweredCall`)
|
||||
|
||||
|
||||
if (!crmCallDuration || crmCallDuration.trim() == "")
|
||||
crmCallDuration = "300"
|
||||
if (!crmCallDuration || crmCallDuration.trim() == "" || crmCallDuration == "0")
|
||||
crmCallDuration = "10"
|
||||
|
||||
|
||||
if (operationStatus == "hangup")
|
||||
|
|
Loading…
Reference in New Issue