은승우

Update app.js

Showing 1 changed file with 1 additions and 0 deletions
......@@ -60,6 +60,7 @@ console.log(res.statusCode);
Promise
.all(req.body.events.map(handleEvent))
.then((result) => res.json(result))
.catch((err)=>{console.log(err);})
});
// event handler
function handleEvent(event) {
......