aboutsummaryrefslogtreecommitdiff
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/Product.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/Product.js b/server/models/Product.js
index f825a8b..a8ef10e 100644
--- a/server/models/Product.js
+++ b/server/models/Product.js
@@ -12,7 +12,7 @@ const ProductSchema = new mongoose.Schema({
},
imagePath: {
type: String,
- required: false,
+ default: "uploads/no-image.png",
maxLength: [256, "Product's image path can't have more then 256 characters."]
},
price: {