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

View File

@@ -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(),
});