fix: profile firstName field not updating

The profile form was sending `name` field but the database column is
`firstName`. This caused the firstName to be silently ignored during
updates. Changed form field and API schema to use `firstName` to match
the database column.
This commit is contained in:
p8008d
2026-01-27 15:07:56 +02:00
parent 84fa805acc
commit 74aecf6828
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -214,6 +214,6 @@ export const apiUpdateUser = createSchema.partial().extend({
.optional(),
password: z.string().optional(),
currentPassword: z.string().optional(),
name: z.string().optional(),
firstName: z.string().optional(),
lastName: z.string().optional(),
});