fix: set default value to crmCallDuration is equals 0

master
adriano 2024-09-24 13:00:14 -03:00
parent 6691427b37
commit 9b719a5eae
1 changed files with 6 additions and 6 deletions

View File

@ -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")