Showing
1 changed file
with
1 additions
and
0 deletions
... | @@ -60,6 +60,7 @@ console.log(res.statusCode); | ... | @@ -60,6 +60,7 @@ console.log(res.statusCode); |
60 | Promise | 60 | Promise |
61 | .all(req.body.events.map(handleEvent)) | 61 | .all(req.body.events.map(handleEvent)) |
62 | .then((result) => res.json(result)) | 62 | .then((result) => res.json(result)) |
63 | + .catch((err)=>{console.log(err);}) | ||
63 | }); | 64 | }); |
64 | // event handler | 65 | // event handler |
65 | function handleEvent(event) { | 66 | function handleEvent(event) { | ... | ... |
-
Please register or login to post a comment