zapController: don't let status_id be an empty string

This commit is contained in:
Alex Gleason 2024-06-04 17:55:48 -05:00
parent 50e7213954
commit 92ac97c688
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 1 additions and 1 deletions

View File

@ -462,7 +462,7 @@ const unpinController: AppController = async (c) => {
const zapSchema = z.object({ const zapSchema = z.object({
account_id: n.id(), account_id: n.id(),
status_id: n.id().optional().or(z.literal('')), status_id: n.id().optional(),
amount: z.number().int().positive(), amount: z.number().int().positive(),
comment: z.string().optional(), comment: z.string().optional(),
}); });