From c8f2343f5db621f4988ab02783679137a2bcc93b Mon Sep 17 00:00:00 2001 From: Phillip Leslie Date: Sun, 28 May 2017 23:39:23 -0500 Subject: [PATCH] Version 3 of twilio library no longer has this call Revise with new equivalent of function that used to exist --- lambda-functions/receive-vote/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lambda-functions/receive-vote/app.js b/lambda-functions/receive-vote/app.js index c656890..f82fd25 100644 --- a/lambda-functions/receive-vote/app.js +++ b/lambda-functions/receive-vote/app.js @@ -25,7 +25,7 @@ exports.handler = function(event, context) { console.log(err); context.fail(err); } else { - var resp = new twilio.TwimlResponse(); + var resp = new twilio.twiml.MessagingResponse(); resp.message("Thank you for casting a vote for " + votedFor); context.done(null, [resp.toString()]); console.log("Vote received for %s", votedFor);