Skip to content

Commit

Permalink
feat: add missing name to profile image upload
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Sep 4, 2020
1 parent b0a7592 commit 54b4972
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/user/picture.js
Expand Up @@ -97,6 +97,7 @@ module.exports = function (User) {
const uploadedImage = await image.uploadImage(filename, 'profile', {
uid: data.uid,
path: newPath,
name: 'profileAvatar',
});

await User.setUserFields(data.uid, {
Expand Down

0 comments on commit 54b4972

Please sign in to comment.