은승우

Update app.js

Showing 1 changed file with 1 additions and 2 deletions
...@@ -82,10 +82,9 @@ function handleEvent(event) { ...@@ -82,10 +82,9 @@ function handleEvent(event) {
82 } 82 }
83 else if (event.type == 'message'&& event.message.type == 'image') { 83 else if (event.type == 'message'&& event.message.type == 'image') {
84 return new Promise((resolve,reject)=>{ 84 return new Promise((resolve,reject)=>{
85 - request.post(options, function(error, response, body){ 85 + request.post( function(error, response, body){
86 // Translate API Sucess 86 // Translate API Sucess
87 if(!error && response.statusCode == 200){ 87 if(!error && response.statusCode == 200){
88 -
89 client.replyMessage(event.replyToken,event.message.originalContentUrl).then(resolve).catch(reject); 88 client.replyMessage(event.replyToken,event.message.originalContentUrl).then(resolve).catch(reject);
90 } 89 }
91 }); 90 });
......