Skip to content

Scheduling infrastructure for absolutely everyone.

Fix user update API call

Bailey Pumfleet06f5559ca00f
diff --git a/pages/api/user/[id].ts b/pages/api/user/[id].ts
index 9ec73ea720c..f764c72cf62 100644
--- a/pages/api/user/[id].ts
+++ b/pages/api/user/[id].ts
@@ -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",