We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13486d9 commit 06f5559Copy full SHA for 06f5559
pages/api/user/[id].ts
@@ -40,7 +40,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
40
id: authenticatedUser.id,
41
},
42
data: {
43
- ...pick(req.body, [
+ ...pick(req.body.data, [
44
"username",
45
"name",
46
"avatar",
0 commit comments