Skip to content

Commit

Permalink
incorrect expires fix (#58)
Browse files Browse the repository at this point in the history
Co-authored-by: ajukes <ajukes@callable.io>
  • Loading branch information
ajukes and ajukes authored Aug 2, 2024
1 parent a1171eb commit 90f0272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/update-call-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function updateCallStatus(client, logger, callInfo, serviceUrl) {
validateCallInfo(callInfo, serviceUrl);
const {accountSid, callSid} = callInfo;
const key = makeCallKey(accountSid, callSid);
const expires = callInfo.sipStatus >= 200 ? MAX_CALL_LIFETIME : MAX_CALL_LIFETIME_AFTER_COMPLETED;
const expires = callInfo.sipStatus >= 200 ? MAX_CALL_LIFETIME_AFTER_COMPLETED : MAX_CALL_LIFETIME;
const obj = callInfo.sipStatus === 100 ? Object.assign({serviceUrl}, callInfo) : callInfo;

// remove null values
Expand Down

0 comments on commit 90f0272

Please sign in to comment.