은승우

Update app.js

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