payservedb 3.2.7 → 3.2.9

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payservedb",
3
- "version": "3.2.7",
3
+ "version": "3.2.9",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -27,8 +27,7 @@ const deliverySchema = new mongoose.Schema({
27
27
  },
28
28
  deliveryDate: {
29
29
  type: Date,
30
- required: true,
31
- default: Date.now
30
+ required: true
32
31
  },
33
32
  notes: {
34
33
  type: String,
@@ -71,4 +70,8 @@ const deliverySchema = new mongoose.Schema({
71
70
  }
72
71
  }, {
73
72
  timestamps: true
74
- });
73
+ });
74
+
75
+ const MetersDelivery = mongoose.model('MetersDelivery', deliverySchema);
76
+
77
+ module.exports = MetersDelivery;