Update apps/api/src/controllers/v1/types.ts

This commit is contained in:
Gergő Móricz 2025-02-10 09:31:23 +01:00 committed by GitHub
parent 843cec971d
commit 290dd033d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -135,7 +135,7 @@ export const actionsSchema = z.array(
).refine(
(actions) => actions.length <= MAX_ACTIONS,
{
message: `Maximum of ${MAX_ACTIONS} actions allowed`,
message: `Number of actions cannot exceed ${MAX_ACTIONS}`,
},
).refine(
(actions) => calculateTotalWaitTime(actions) <= ACTIONS_MAX_WAIT_TIME * 1000,