fix: update the product.model reviewCount to reviewsCount
This commit is contained in:
1 parent
0b271ab55c
commit
5d3adf2c76
1 file changed
+1
-1
@@ -19,7 +19,7 @@ const productSchema = new mongoose.Schema({
|
|||||||
discountRate: { type: Number },
|
discountRate: { type: Number },
|
||||||
description: { type: String },
|
description: { type: String },
|
||||||
category: { type: String },
|
category: { type: String },
|
||||||
reviewCount: { type: Number },
|
reviewsCount: { type: Number },
|
||||||
isOutOfStock: { type: Boolean, default: false },
|
isOutOfStock: { type: Boolean, default: false },
|
||||||
users: [
|
users: [
|
||||||
{ email: { type: String, required: true } }
|
{ email: { type: String, required: true } }
|
||||||
|
|||||||
Reference in new issue
Block a user