replace non-breaking spaces with normal ones

This commit is contained in:
Cihan Bebek
2017-07-05 13:04:31 +03:00
parent 20982e32a6
commit 0e0947ba39
2 changed files with 3 additions and 3 deletions

View File

@@ -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)

View File

@@ -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);
});