Update apps/api/src/controllers/v1/types.ts
This commit is contained in:
@@ -135,7 +135,7 @@ export const actionsSchema = z.array(
|
|||||||
).refine(
|
).refine(
|
||||||
(actions) => actions.length <= MAX_ACTIONS,
|
(actions) => actions.length <= MAX_ACTIONS,
|
||||||
{
|
{
|
||||||
message: `Maximum of ${MAX_ACTIONS} actions allowed`,
|
message: `Number of actions cannot exceed ${MAX_ACTIONS}`,
|
||||||
},
|
},
|
||||||
).refine(
|
).refine(
|
||||||
(actions) => calculateTotalWaitTime(actions) <= ACTIONS_MAX_WAIT_TIME * 1000,
|
(actions) => calculateTotalWaitTime(actions) <= ACTIONS_MAX_WAIT_TIME * 1000,
|
||||||
|
|||||||
Reference in New Issue
Block a user