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