From 92ac97c68855d88a2585e1da7254f47aedb0b510 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 4 Jun 2024 17:55:48 -0500 Subject: [PATCH] zapController: don't let status_id be an empty string --- src/controllers/api/statuses.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/api/statuses.ts b/src/controllers/api/statuses.ts index 3e2de31..91b4d45 100644 --- a/src/controllers/api/statuses.ts +++ b/src/controllers/api/statuses.ts @@ -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(), });