Fix user update API call
This commit is contained in:
parent
13486d9988
commit
06f5559ca0
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
||||||
id: authenticatedUser.id,
|
id: authenticatedUser.id,
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
...pick(req.body, [
|
...pick(req.body.data, [
|
||||||
"username",
|
"username",
|
||||||
"name",
|
"name",
|
||||||
"avatar",
|
"avatar",
|
||||||
|
|
Loading…
Reference in a new issue