|
|
|
@ -486,7 +486,7 @@ accountsController.uploadPicture = function (req, res, next) {
|
|
|
|
|
}
|
|
|
|
|
], function(err, image) {
|
|
|
|
|
fs.unlink(userPhoto.path, function(err) {
|
|
|
|
|
winston.error('unabled to delete picture', err);
|
|
|
|
|
winston.error('unable to delete picture', err);
|
|
|
|
|
});
|
|
|
|
|
if (err) {
|
|
|
|
|
return next(err);
|
|
|
|
|