From 0e0947ba39c13c9baf4a8158ecca4326f9208dae Mon Sep 17 00:00:00 2001 From: Cihan Bebek Date: Wed, 5 Jul 2017 13:04:31 +0300 Subject: [PATCH] replace non-breaking spaces with normal ones --- routes/feeds.js | 2 +- routes/invite.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); });