은승우

Update app.js

Showing 1 changed file with 3 additions and 2 deletions
...@@ -103,7 +103,7 @@ async function handleEvent(event) { ...@@ -103,7 +103,7 @@ async function handleEvent(event) {
103 body: event.message.image 103 body: event.message.image
104 }; 104 };
105 105
106 - }).then( 106 + }).then((options)=>{
107 request.post(options, function (error, response, body) { 107 request.post(options, function (error, response, body) {
108 var data=JSON.stringify(body); 108 var data=JSON.stringify(body);
109 var text=''; 109 var text='';
...@@ -139,7 +139,8 @@ async function handleEvent(event) { ...@@ -139,7 +139,8 @@ async function handleEvent(event) {
139 } 139 }
140 client.replyMessage(event.replyToken,result).then(resolve).catch(reject); 140 client.replyMessage(event.replyToken,result).then(resolve).catch(reject);
141 }); 141 });
142 - })) 142 + })
143 + })
143 } 144 }
144 else if(event.type == 'message' && event.message.type == 'text') 145 else if(event.type == 'message' && event.message.type == 'text')
145 { 146 {
......