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 | |
parent | cefa2bb95d28b30d5a5d5a9fb8d43e14bf116272 (diff) |
Console logging for a bug fix
-rwxr-xr-x | routes.js | 3 | ||||
-rwxr-xr-x | start.js | 2 |
2 files changed, 4 insertions, 1 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')){ @@ -24,5 +24,5 @@ const app = require('./app'); global.appRoot = path.resolve(__dirname); const server = app.listen(3000, () => { - console.log(`Welcome to gathio! The app is now running on https://localhost:${server.address().port}`); + console.log(`Welcome to gathio! The app is now running on http://localhost:${server.address().port}`); }); |