Generate avatar image on register or update if an image is included
This commit is contained in:
1 parent
f9ca58c00a
commit
43bac259d7
6 files changed
+594
-22
No files matched your search
@@ -20,6 +20,9 @@ const UserSchema = mongoose.Schema(
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
avatarImage: {
|
||||
type: String,
|
||||
},
|
||||
profileImage: {
|
||||
data: Buffer,
|
||||
contentType: String,
|
||||
|
||||
Reference in new issue
Block a user