diff options
author | lowercasename <raphaelkabo@gmail.com> | 2019-07-26 21:23:22 +0100 |
---|---|---|
committer | lowercasename <raphaelkabo@gmail.com> | 2019-07-26 21:23:22 +0100 |
commit | cc5df0b6d3742265abaa2c526a370bd9c13abe1a (patch) | |
tree | 61ba1077a2931ca718a4bef7653a492a70c61fd6 /routes.js | |
parent | cefa2bb95d28b30d5a5d5a9fb8d43e14bf116272 (diff) |
Console logging for a bug fix
Diffstat (limited to 'routes.js')
-rwxr-xr-x | routes.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -128,10 +128,13 @@ router.get('/new/event/public', (req, res) => { }) router.get('/:eventID', (req, res) => { + console.log("Showing event") + console.log("req.params.eventID",req.params.eventID) Event.findOne({ id: req.params.eventID }) .then((event) => { + console.log("event",event) if (event) { parsedLocation = event.location.replace(/\s+/g, '+'); if (moment(event.end).isSame(event.start, 'day')){ |