mirror of
https://github.com/koodiklinikka/koodiklinikka.fi-api.git
synced 2026-02-23 15:56:08 +00:00
replace non-breaking spaces with normal ones
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user