fix avatar upload crash discovered by @AccaliaDeElementia

v1.18.x
Ben Lubar 9 years ago
parent 52e4a37df8
commit 7540fb54ac

@ -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);

Loading…
Cancel
Save