middleware using next should specify it in arguments
parent
7b449e7a5b
commit
ab14b32d19
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue