@positivegrid/pg-mongoose-schema 27.4.2 → 27.4.3

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.
@@ -522,11 +522,11 @@ module.exports = function (mongoose) {
522
522
  history: [{
523
523
  created_on: { type: String, required: true },
524
524
  date: { type: String, required: true },
525
- completed_on: { type: String, required: true },
526
- action: { type: String, required: true },
527
- points: { type: Number, required: true },
528
- status: { type: String, required: true },
529
- action_name: { type: String, required: true },
525
+ completed_on: { type: String, default: null },
526
+ action: { type: String, default: null },
527
+ points: { type: Number, default: 0 },
528
+ status: { type: String, default: null },
529
+ action_name: { type: String, default: null },
530
530
  order_ids: [{ type: String }]
531
531
  }],
532
532
  created_on: { type: Date, default: Date.now, required: true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@positivegrid/pg-mongoose-schema",
3
- "version": "27.4.2",
3
+ "version": "27.4.3",
4
4
  "description": "Positive Grid mongoose schema",
5
5
  "author": "Ferrari Lee <shiyung@positivegrid.com>",
6
6
  "homepage": "https://git.positivegrid.com:8443/backend/pg-mongoose-schema",