Fix user update API call

This commit is contained in:
Bailey Pumfleet 2021-09-17 15:41:28 +01:00
parent 13486d9988
commit 06f5559ca0

View file

@ -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",