flykup_model_development 3.1.42 → 3.1.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,7 +39,7 @@ const liveFlashSaleSchema = new Schema({
39
39
  min: 1
40
40
  },
41
41
  duration: {
42
- type: Number, // in seconds
42
+ type: Number,
43
43
  required: true,
44
44
  enum: [10, 20, 30, 40, 50, 60]
45
45
  },
@@ -73,7 +73,6 @@ const liveFlashSaleSchema = new Schema({
73
73
  default: Date.now
74
74
  }
75
75
  });
76
-
77
76
  // Show Schema
78
77
  const showSchema = new Schema(
79
78
  {
@@ -206,7 +205,7 @@ const showSchema = new Schema(
206
205
  // === LIVE FLASH SALE FIELDS (ADD THESE) ===
207
206
  liveFlashSales: {
208
207
  type: [liveFlashSaleSchema],
209
- default: []
208
+ default: [] // This ensures it's always an array
210
209
  },
211
210
  currentFlashSale: {
212
211
  type: Schema.Types.ObjectId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flykup_model_development",
3
- "version": "3.1.42",
3
+ "version": "3.1.43",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "private": false,