fix: update the product.model reviewCount to reviewsCount

This commit is contained in:
Leon Xu committed 2023-12-30 15:24:45 -08:00
1 parent 0b271ab55c
commit 5d3adf2c76
1 file changed
+1 -1
+1 -1
View File
@@ -19,7 +19,7 @@ const productSchema = new mongoose.Schema({
discountRate: { type: Number },
description: { type: String },
category: { type: String },
reviewCount: { type: Number },
reviewsCount: { type: Number },
isOutOfStock: { type: Boolean, default: false },
users: [
{ email: { type: String, required: true } }