zapController: don't let status_id be an empty string
This commit is contained in:
parent
50e7213954
commit
92ac97c688
|
@ -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…
Reference in New Issue