From b96e47934122f7dd6b9b1bbd0c29c14b0838b06e Mon Sep 17 00:00:00 2001 From: Chloe Date: Tue, 14 Feb 2023 10:40:39 +0700 Subject: [PATCH] fix: cart promotion item schema Signed-off-by: Chloe --- packages/api-plugin-promotions/src/simpleSchemas.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/api-plugin-promotions/src/simpleSchemas.js b/packages/api-plugin-promotions/src/simpleSchemas.js index 09920b2521a..cee652d3c98 100644 --- a/packages/api-plugin-promotions/src/simpleSchemas.js +++ b/packages/api-plugin-promotions/src/simpleSchemas.js @@ -136,7 +136,10 @@ export const CartPromotionItem = new SimpleSchema({ _id: String, name: String, label: String, - description: String, + description: { + type: String, + optional: true + }, triggerType: { type: String, allowedValues: ["implicit", "explicit"]