이유혁

LINE API Key setting & runtime test finished

Showing 1 changed file with 3 additions and 3 deletions
......@@ -18,8 +18,8 @@ var client_id = 'xZMx34y7uru1v8lywZ2d';
var client_secret = 'p6L7M7WsH9';
const config = {
channelAccessToken: 'mnny0MJSezgBXzR9C3Ddcc1Csdb7Y9jkvy2nqV5saOmvR2YOJ1/kj/2M0CNsLA+57B2qDpdUQ7WbCTtIKx/LAJ6Kwfop4tX3up7EM8H9EZK1td6GMbhhCb6wvUFVdb1PcTO4joCv8mspd3ubo8a+gAdB04t89/1O/w1cDnyilFU=',
channelSecret: 'bde77633a16fc5bfbd532d5990c6170e',
channelAccessToken: 'TgqvFO0cHkSMEiRkJhLMCbfNzzO4Yhpdf8Ov+cr4tBPh2teSilW22TfEfTlxMHFBGufqslip3EYSdppQTCAThCEzf4xc6q8YEtPjF66hmyGOpLZoPK41VTWorrkOmBmmqysb11rElm50Wz6kvM/gogdB04t89/1O/w1cDnyilFU=',
channelSecret: 'ff1a934d000f5bfa265ed9fe2eedb0e7',
};
......@@ -33,7 +33,7 @@ const client = new line.Client(config);
// about the middleware, please refer to doc
app.post('/webhook', line.middleware(config), (req, res) => {
Promise
.all(req.body.events.map(handleEvent))
.all(req.body.events.map(event => handleEvent(event)))
.then((result) => res.json(result))
.catch((err) => {
console.error(err);
......