diff options
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/Order.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/Order.js b/server/models/Order.js index a4b2508..8520abf 100644 --- a/server/models/Order.js +++ b/server/models/Order.js @@ -26,7 +26,7 @@ const OrderSchema = new mongoose.Schema({ }, userId: { type: mongoose.Schema.Types.ObjectId, - required: false + required: true }, items: { type: [ItemSchema], |