fix: users can set their bio to a number

This commit is contained in:
P. Reis 2024-10-30 13:48:35 -03:00
parent 324ee58bd0
commit 0a7c0c60a9

View file

@ -259,7 +259,7 @@ const accountStatusesController: AppController = async (c) => {
const updateCredentialsSchema = z.object({
display_name: z.string().optional(),
note: z.string().optional(),
note: z.coerce.string().optional(),
avatar: fileSchema.or(z.literal('')).optional(),
header: fileSchema.or(z.literal('')).optional(),
locked: z.boolean().optional(),