Skip to content

Commit

Permalink
Merge pull request #4598 from BenLubar/fix-avatar-crash
Browse files Browse the repository at this point in the history
fix avatar upload crash discovered by @AccaliaDeElementia
  • Loading branch information
barisusakli committed May 4, 2016
2 parents 52e4a37 + 7540fb5 commit b0747ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/user/picture.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ module.exports = function(User) {
async.series([
async.apply(image.normalise, picture.path, extension),
async.apply(fs.rename, picture.path + '.png', picture.path)
], next);
], function(err) {
next(err);
});
},
function(next) {
User.getUserField(updateUid, 'uploadedpicture', next);
Expand Down

0 comments on commit b0747ad

Please sign in to comment.