Skip to content

Commit

Permalink
fix: CallStatus string is lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Kr1sh1 committed Mar 1, 2024
1 parent 9ead1c5 commit 4defe05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/statusCallback.protected.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const handler: ServerlessFunctionSignature<TwilioEnvironmentVariables, St
event,
callback,
) {
if (event.CallStatus === "Completed") {
if (event.CallStatus === "completed") {
const callerNumber = event.From
const logFileName = decodeURIComponent(event.request.cookies.logFileName) // Could be 'null' if the call was terminated too early
const callStartTimestamp = decodeURIComponent(event.request.cookies.callStartTimestamp)
Expand Down

0 comments on commit 4defe05

Please sign in to comment.