Spaces:
Sleeping
Sleeping
Andrew
commited on
Commit
·
d0e2923
1
Parent(s):
9352134
fix(server): update persona schema validation for new fields
Browse files
src/lib/server/api/routes/groups/user.ts
CHANGED
|
@@ -13,6 +13,8 @@ const personaSchema = z.object({
|
|
| 13 |
occupation: z.string().max(200).default(""),
|
| 14 |
stance: z.string().max(200).default(""),
|
| 15 |
prompt: z.string().max(10000).default(""),
|
|
|
|
|
|
|
| 16 |
isDefault: z.boolean(),
|
| 17 |
createdAt: z.coerce.date(),
|
| 18 |
updatedAt: z.coerce.date(),
|
|
|
|
| 13 |
occupation: z.string().max(200).default(""),
|
| 14 |
stance: z.string().max(200).default(""),
|
| 15 |
prompt: z.string().max(10000).default(""),
|
| 16 |
+
age: z.string().default(""),
|
| 17 |
+
gender: z.string().default(""),
|
| 18 |
isDefault: z.boolean(),
|
| 19 |
createdAt: z.coerce.date(),
|
| 20 |
updatedAt: z.coerce.date(),
|