diff --git a/routes/feeds.js b/routes/feeds.js index c4dca3f..bf09e4b 100644 --- a/routes/feeds.js +++ b/routes/feeds.js @@ -10,7 +10,7 @@ module.exports = function (app) { * GET /feeds * Endpoint for fetching different information feeds (Twitter, GitHub etc.) */ - app.get('/feeds', cache('10 minutes'), function(req, res, next) { + app.get('/feeds', cache('10 minutes'), function(req, res, next) { Promise.props({ twitter: twitter.getTweets(40), github: github.getEvents(40) diff --git a/routes/invite.js b/routes/invite.js index bedd745..9013fd4 100644 --- a/routes/invite.js +++ b/routes/invite.js @@ -10,7 +10,7 @@ module.exports = function (app) { * Endpoint for sending invitations automatically */ - app.post('/invites', function(req, res, next) { + app.post('/invites', function(req, res, next) { if(!validator.isEmail(req.body.email)) { return res.status(400).send('invalid_email'); @@ -34,7 +34,7 @@ module.exports = function (app) { var message = 'User ' + user.login + ' invited to GitHub organization.' slack.createMessage(message); }) - .catch(function(err) { + .catch(function(err) { var message = 'Creating GitHub invitation failed for: ' + req.body.email + ' reason: ' + err; slack.createMessage(message); });