payservedb 2.9.6 → 2.9.7

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": "2.9.6",
3
+ "version": "2.9.7",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -27,21 +27,12 @@ const serviceRequestSchema = new mongoose.Schema({
27
27
  required: true,
28
28
  ref: 'Customer'
29
29
  },
30
- // Fields for commission-related services (appears when isCommissionSelected is true)
31
30
  frequency: {
32
31
  type: String,
33
- enum: ['Once', 'Recurring'],
34
- required: function () {
35
- return this.isCommissionSelected;
36
- }
37
32
  },
38
33
  percentage: {
39
34
  type: Number,
40
- required: function () {
41
- return this.isCommissionSelected;
42
- }
43
35
  },
44
- // Fields for non-commission-related services
45
36
  isCommissionSelected: {
46
37
  type: Boolean,
47
38
  default: false