mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-18 14:04:23 +01:00
zapController: don't let status_id be an empty string
This commit is contained in:
@@ -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(),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user