mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
zapController: don't let status_id be an empty string
This commit is contained in:
parent
50e7213954
commit
92ac97c688
1 changed files with 1 additions and 1 deletions
|
|
@ -462,7 +462,7 @@ const unpinController: AppController = async (c) => {
|
|||
|
||||
const zapSchema = z.object({
|
||||
account_id: n.id(),
|
||||
status_id: n.id().optional().or(z.literal('')),
|
||||
status_id: n.id().optional(),
|
||||
amount: z.number().int().positive(),
|
||||
comment: z.string().optional(),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue