middleware using next should specify it in arguments

pull/225/merge
Berkeley Martinez 2015-03-17 20:42:09 -07:00
parent 7b449e7a5b
commit ab14b32d19
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ module.exports = {
});
},
about: function(req, res) {
about: function(req, res, next) {
if (req.user) {
if (!req.user.profile.picture || req.user.profile.picture === "https://s3.amazonaws.com/freecodecamp/favicons/apple-touch-icon-180x180.png") {
req.user.profile.picture = "https://s3.amazonaws.com/freecodecamp/camper-image-placeholder.png";