flykup_model_development 3.1.73 → 3.1.75

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.
@@ -245,7 +245,8 @@ const orderSchema = new mongoose.Schema(
245
245
  'RETURN_RECEIVED',
246
246
  'REFUNDED',
247
247
  'REPLACEMENT_SHIPPED',
248
- 'REPLACEMENT_DELIVERED'
248
+ 'REPLACEMENT_DELIVERED',
249
+ 'PAYMENT_FAILED'
249
250
  ],
250
251
  // default: 'ORDERED', // Default should be the initial state
251
252
  required: true
@@ -93,24 +93,7 @@ const bundleSaleSchema = new Schema({
93
93
  key: { type: String, default: null },
94
94
  url: { type: String, default: null }
95
95
  },
96
- createdAt: { type: Date, default: Date.now },
97
- interestedUsers: {
98
- type: [
99
- {
100
- userId: {
101
- type: Schema.Types.ObjectId,
102
- ref: 'users',
103
- required: true
104
- },
105
- interestedAt: {
106
- type: Date,
107
- default: Date.now
108
- },
109
- _id: false
110
- }
111
- ],
112
- default: []
113
- }
96
+ createdAt: { type: Date, default: Date.now }
114
97
  });
115
98
 
116
99
  // Show Schema with FIXED validation
@@ -225,25 +208,9 @@ const showSchema = new Schema(
225
208
  }
226
209
  },
227
210
  productPrice: { type: Number, min: 0, default: null },
228
- interestedUsers: {
229
- type: [
230
- {
231
- userId: {
232
- type: Schema.Types.ObjectId,
233
- ref: 'users',
234
- required: true
235
- },
236
- interestedAt: {
237
- type: Date,
238
- default: Date.now
239
- },
240
- _id: false
241
- }
242
- ],
243
- default: []
244
- }
245
- },
246
- ],
211
+
212
+ },
213
+ ],
247
214
  default: [],
248
215
  validate: {
249
216
  validator: function(products) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flykup_model_development",
3
- "version": "3.1.73",
3
+ "version": "3.1.75",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "private": false,