payservedb 1.6.8 → 1.7.0

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": "1.6.8",
3
+ "version": "1.7.0",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -14,10 +14,14 @@ const contractSchema = new mongoose.Schema({
14
14
  required: true
15
15
  },
16
16
  levy: {
17
- type: String,
18
- required: true
17
+ type: mongoose.Schema.Types.ObjectId, // Update this to reference LevyType
18
+ ref: 'Levy',
19
+ required: [true, 'Levy is required'],
20
+ },
21
+ disabled: {
22
+ type: Boolean,
23
+ default: false
19
24
  },
20
- units: [],
21
25
  facilityId: {
22
26
  type: mongoose.Schema.Types.ObjectId,
23
27
  ref: 'Facility',