Fix user update API call

This commit is contained in:
Bailey Pumfleet committed 2021-09-17 15:41:28 +01:00
1 parent 13486d9988
commit 06f5559ca0
1 file changed
+1 -1
+1 -1
View File
@@ -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",