feat: add missing name to profile image upload

This commit is contained in:
Barış Soner Uşaklı
2020-09-04 01:16:11 -04:00
parent b0a759223d
commit 54b497258f

View File

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