kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
allow for viewing single-option polls
rodzic
6ecc6388a0
commit
18d8eaa22b
|
@ -14,7 +14,7 @@ const pollSchema = z.object({
|
||||||
expires_at: z.string().datetime().nullable().catch(null),
|
expires_at: z.string().datetime().nullable().catch(null),
|
||||||
id: z.string(),
|
id: z.string(),
|
||||||
multiple: z.boolean().catch(false),
|
multiple: z.boolean().catch(false),
|
||||||
options: z.array(pollOptionSchema).min(2),
|
options: z.array(pollOptionSchema).min(1),
|
||||||
voters_count: z.number().catch(0),
|
voters_count: z.number().catch(0),
|
||||||
votes_count: z.number().catch(0),
|
votes_count: z.number().catch(0),
|
||||||
own_votes: z.array(z.number()).nonempty().nullable().catch(null),
|
own_votes: z.array(z.number()).nonempty().nullable().catch(null),
|
||||||
|
|
Ładowanie…
Reference in New Issue