feat: add missing name to profile image upload

v1.18.x
Barış Soner Uşaklı 4 years ago
parent b0a759223d
commit 54b497258f

@ -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, {

Loading…
Cancel
Save