flykup_model_production 1.0.7 → 1.0.8

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.
@@ -107,6 +107,11 @@ const giveawayProductSchema = new Schema({
107
107
  enum: ['preparing', 'ready', 'active', 'ended', 'failed'],
108
108
  default: 'preparing'
109
109
  },
110
+ requireAutoFollow: {
111
+ type: Boolean,
112
+ default: false
113
+ },
114
+
110
115
  activatedAt: { type: Date, default: null },
111
116
  createdAt: { type: Date, default: Date.now }
112
117
  });
@@ -284,6 +289,13 @@ const showSchema = new Schema(
284
289
  type: [giveawayProductSchema],
285
290
  default: []
286
291
  },
292
+
293
+ enabledProductTypes: {
294
+ buyNow: { type: Boolean, default: false },
295
+ auction: { type: Boolean, default: false },
296
+ giveaway: { type: Boolean, default: false }
297
+ }
298
+ ,
287
299
  notes: {
288
300
  type: String,
289
301
  default: ''
@@ -310,5 +322,6 @@ showSchema.pre('save', function (next) {
310
322
  next();
311
323
  });
312
324
 
313
- const Show = mongoose.models.shows || mongoose.model("shows", showSchema);
314
- export default Show;
325
+ const Show = mongoose.model("shows", showSchema);
326
+
327
+ export default Show;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flykup_model_production",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "main": "index.js",
5
5
  "type": "module",
6
6
  "private": false,