From 81abbdd65b5c23c06b2ec53f03eb4bc269576bbf Mon Sep 17 00:00:00 2001 From: iamareebjamal Date: Mon, 6 Jul 2020 13:28:48 +0530 Subject: [PATCH] fix: Make discount code ID read only --- app/models/order.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/order.js b/app/models/order.js index 7424f8ba318..610ab3cea9f 100644 --- a/app/models/order.js +++ b/app/models/order.js @@ -27,7 +27,7 @@ export default ModelBase.extend(CustomPrimaryKeyMixin, { isBillingEnabled : attr('boolean', { defaultValue: false }), createdAt : attr('moment', { readOnly: true }), completedAt : attr('moment', { readOnly: true }), - discountCodeId : attr('string'), + discountCodeId : attr('string', { readOnly: true }), ticketsPdfUrl : attr('string'), /** * Relationships