Coerce group 'id' into String
This commit is contained in:
parent
68be77fa54
commit
2813b02329
|
@ -22,7 +22,7 @@ const groupSchema = z.object({
|
||||||
group_visibility: z.string().catch(''), // TruthSocial
|
group_visibility: z.string().catch(''), // TruthSocial
|
||||||
header: z.string().catch(headerMissing),
|
header: z.string().catch(headerMissing),
|
||||||
header_static: z.string().catch(''),
|
header_static: z.string().catch(''),
|
||||||
id: z.string(),
|
id: z.coerce.string(),
|
||||||
locked: z.boolean().catch(false),
|
locked: z.boolean().catch(false),
|
||||||
membership_required: z.boolean().catch(false),
|
membership_required: z.boolean().catch(false),
|
||||||
members_count: z.number().catch(0),
|
members_count: z.number().catch(0),
|
||||||
|
|
Loading…
Reference in New Issue