Skip to content

Commit 01ad3b7

Browse files
committedMay 9, 2022
add note about userId in 4-end #176
1 parent 590b974 commit 01ad3b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎book/4-end/api/server/api/public.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ router.post('/user/update-profile', async (req, res, next) => {
2828
try {
2929
const { name, avatarUrl } = req.body;
3030

31-
const userId = '5e6427a51c9d440000c9ba6f';
31+
const userId = '62167b54873bce9ec3240910';
32+
33+
// NOTE: For userId above, input the value of _id from your user document in your own database.
3234

3335
const updatedUser = await User.updateProfile({
3436
userId: userId,

0 commit comments

Comments
 (0)
Failed to load comments.