mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 21:30:30 +01:00
feat: add missing name to profile image upload
This commit is contained in:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user