tweaked error message for empty promotion batch
This commit is contained in:
@@ -10,7 +10,7 @@ export const batchPromotionMemberSchema = z.object({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const batchPromotionSchema = z.object({
|
export const batchPromotionSchema = z.object({
|
||||||
promotions: z.array(batchPromotionMemberSchema).nonempty({ message: "At least one promotion is required" }),
|
promotions: z.array(batchPromotionMemberSchema, { message: "At least one promotion is required" }).nonempty({ message: "At least one promotion is required" }),
|
||||||
|
|
||||||
})
|
})
|
||||||
.superRefine((data, ctx) => {
|
.superRefine((data, ctx) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user