Skip to content

Commit 06f5559

Browse files
committed
Fix user update API call
1 parent 13486d9 commit 06f5559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/api/user/[id].ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
4040
id: authenticatedUser.id,
4141
},
4242
data: {
43-
...pick(req.body, [
43+
...pick(req.body.data, [
4444
"username",
4545
"name",
4646
"avatar",

0 commit comments

Comments
 (0)