Skip to content

Commit f45c415

Browse files
committed
Added Profile Edit option
1 parent 7a8453f commit f45c415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/api/user/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ handler.patch(upload.single('profilePicture'), async (req, res) => {
4848
$set: {
4949
name: name,
5050
bio: bio,
51-
profilePicture: profilePicture
51+
...(profilePicture && { profilePicture })
5252
},
5353
},
5454
);

0 commit comments

Comments
 (0)